當前位置: 首頁>>代碼示例>>C#>>正文


C# Model.WebPortalEntities類代碼示例

本文整理匯總了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);
     }
 }
開發者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


注:本文中的WebPortal.Model.WebPortalEntities類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。