本文整理汇总了C#中WebPortal.Model.WebPortalEntities类的典型用法代码示例。如果您正苦于以下问题:C# WebPortalEntities类的具体用法?C# WebPortalEntities怎么用?C# WebPortalEntities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WebPortalEntities类属于WebPortal.Model命名空间,在下文中一共展示了WebPortalEntities类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Single
public Model.Profile Single(int profileID)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Profiles.Single(pro => pro.ProfileID == profileID);
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Profile.cs
示例2: AllByUserID
public List<Model.Profile> AllByUserID(int userID)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Profiles.Where(pro => pro.UserID == userID && pro.Active == true).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Profile.cs
示例3: All
public List<Model.Profile> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Profiles.Where(p => p.Active == true).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Profile.cs
示例4: All
/// <summary>
/// Lay tac ca ChucVu hien co
/// </summary>
/// <returns>List<ChucVu></returns>
public List<WebPortal.Model.ChucVu> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.ChucVus.ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:11,代码来源:ChucVu.cs
示例5: chucvu
public List<WebPortal.Model.ChucVu_GiaoVien> chucvu(int idGiaoVien)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.ChucVu_GiaoVien.Where(app => app.IDGiaoVien == idGiaoVien).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:ChucVu_GiaoVien.cs
示例6: All
public List<Model.InRole> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.InRoles.ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:InRole.cs
示例7: Single
public Model.Setting Single(int settingID)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Settings.Single(setting => setting.SettingID == settingID);
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Setting.cs
示例8: Single
public WebPortal.Model.ToChuc Single(int idToChuc)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.ToChucs.Single(app => app.IDToChuc == idToChuc);
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:ToChuc.cs
示例9: All
public List<WebPortal.Model.ToChuc_GiaoVien> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.ToChuc_GiaoVien.ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:ToChuc_GiaoVien.cs
示例10: All
public List<Model.User> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Users.Where(user => user.Active == true).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Users.cs
示例11: Paging
public List<WebPortal.Model.TaiNguyen> Paging(int start, int numberRecords)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.TaiNguyens.Skip(start).Take(numberRecords).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:TaiNguyen.cs
示例12: All
public List<Model.Group> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Groups.Where(gr => gr.Active == true).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Group.cs
示例13: Paging
public List<Model.Setting> Paging(int start, int numberRecords)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Settings.Skip(start).Take(numberRecords).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Setting.cs
示例14: Get_All
public List<Model.Permission> Get_All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Permissions.ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Permission.cs
示例15: LayTaiNguyenTheoTin
public List<WebPortal.Model.TaiNguyen_TinTuc> LayTaiNguyenTheoTin(int idTinTuc)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.TaiNguyen_TinTuc.Where(app => app.IDTinTuc == idTinTuc).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:TaiNguyen_TinTuc.cs
示例16: All
public List<Model.Permission> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Permissions.Where(per=>per.Active==true).ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:Permission.cs
示例17: Single
public WebPortal.Model.TaiNguyen Single(int idTaiNguyen)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.TaiNguyens.Single(app => app.IDTaiNguyen == idTaiNguyen);
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:TaiNguyen.cs
示例18: All
public List<WebPortal.Model.TinTuc> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.TinTucs.ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:TinTuc.cs
示例19: All
public List<WebPortal.Model.TaiNguyen> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.TaiNguyens.ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:TaiNguyen.cs
示例20: All
public List<WebPortal.Model.LoaiTin_Lv1> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.LoaiTin_Lv1.ToList();
}
}
开发者ID:chutinhha,项目名称:tranphuwesite,代码行数:7,代码来源:LoaiTinLV1.cs
注:本文中的WebPortal.Model.WebPortalEntities类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论