本文整理匯總了C#中WebPortal.Model.WebPortalEntities類的典型用法代碼示例。如果您正苦於以下問題:C# WebPortalEntities類的具體用法?C# WebPortalEntities怎麽用?C# WebPortalEntities使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
WebPortalEntities類屬於WebPortal.Model命名空間,在下文中一共展示了WebPortalEntities類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Single
public Model.Profile Single(int profileID)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Profiles.Single(pro => pro.ProfileID == profileID);
}
}
示例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();
}
}
示例3: All
public List<Model.Profile> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Profiles.Where(p => p.Active == true).ToList();
}
}
示例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();
}
}
示例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();
}
}
示例6: All
public List<Model.InRole> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.InRoles.ToList();
}
}
示例7: Single
public Model.Setting Single(int settingID)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Settings.Single(setting => setting.SettingID == settingID);
}
}
示例8: Single
public WebPortal.Model.ToChuc Single(int idToChuc)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.ToChucs.Single(app => app.IDToChuc == idToChuc);
}
}
示例9: All
public List<WebPortal.Model.ToChuc_GiaoVien> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.ToChuc_GiaoVien.ToList();
}
}
示例10: All
public List<Model.User> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Users.Where(user => user.Active == true).ToList();
}
}
示例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();
}
}
示例12: All
public List<Model.Group> All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Groups.Where(gr => gr.Active == true).ToList();
}
}
示例13: Paging
public List<Model.Setting> Paging(int start, int numberRecords)
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Settings.Skip(start).Take(numberRecords).ToList();
}
}
示例14: Get_All
public List<Model.Permission> Get_All()
{
using (WebPortalEntities dataEntities = new WebPortalEntities())
{
return dataEntities.Permissions.ToList();
}
}
示例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();
}
}