本文整理汇总了C#中EntitySet.AsQueryable方法的典型用法代码示例。如果您正苦于以下问题:C# EntitySet.AsQueryable方法的具体用法?C# EntitySet.AsQueryable怎么用?C# EntitySet.AsQueryable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EntitySet
的用法示例。
在下文中一共展示了EntitySet.AsQueryable方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AdaptRoles
internal static IQueryable<BL.DomainModel.Role> AdaptRoles(EntitySet<UserInRole> roleCollection)
{
var roles = from r in roleCollection.AsQueryable()
select AdaptRole(r.Role);
return roles;
}
示例2: AdaptUsers
internal static IQueryable<BL.DomainModel.User> AdaptUsers(EntitySet<UserInRole> userInRoleCollection)
{
var users = from r in userInRoleCollection.AsQueryable()
select AdaptUser(r.User);
return users;
}
示例3: AdaptOrderDetails
internal static IQueryable<BL.DomainModel.OrderDetail> AdaptOrderDetails(EntitySet<OrderDetail> orderDetailCollection, BL.DomainModel.Order o)
{
var orderDetails = from d in orderDetailCollection.AsQueryable()
select AdaptOrderDetail(d, o);
return orderDetails;
}
示例4: AdaptAddresses
internal static IQueryable<BL.DomainModel.Address> AdaptAddresses(EntitySet<CustomerAddress> addressCollection)
{
var addresses = from a in addressCollection.AsQueryable()
select AdaptAddress(a.Address);
return addresses;
}
示例5: AdaptOrders
internal static IQueryable<BL.DomainModel.Order> AdaptOrders(EntitySet<Order> orderCollection, BL.DomainModel.Customer c)
{
var orders = from o in orderCollection.AsQueryable()
select AdaptOrder(o, c);
return orders;
}