本文整理汇总了C#中DataAccessLayer.FotografPaketiEntities类的典型用法代码示例。如果您正苦于以下问题:C# FotografPaketiEntities类的具体用法?C# FotografPaketiEntities怎么用?C# FotografPaketiEntities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FotografPaketiEntities类属于DataAccessLayer命名空间,在下文中一共展示了FotografPaketiEntities类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetHowManyPhotographerInCity
public static int GetHowManyPhotographerInCity(int cityId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
return db.PhotographerCities.Where(v => v.CityId == cityId).Count();
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:7,代码来源:PhotographerCitiesBml.cs
示例2: Find
public static MemberFavorites Find(int mfid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
return db.MemberFavorites.Find(mfid);
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:7,代码来源:MemberFavoritesBml.cs
示例3: Find
public static Gallery Find(int id)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
return db.Gallery.Find(id);
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:7,代码来源:GalleryBml.cs
示例4: Find
public static PhotographerGenres Find(int pgid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
return db.PhotographerGenres.Find(pgid);
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:7,代码来源:PhotographerGenresBml.cs
示例5: Find
public static City Find(int cityId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
City city = db.City.Find(cityId);
return city;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:CityBml.cs
示例6: GetWordsList
public static List<Words> GetWordsList()
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Words> wordslist = db.Words.Where(v => v.Status == false).OrderBy(v => v.Word).ToList();
return wordslist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:WordsBml.cs
示例7: GetPhotographerGenresCount
public static int GetPhotographerGenresCount(int photographerId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
int count = db.PhotographerGenres.Where(v => v.PhotographerId == photographerId && v.Status == false).Count();
return count;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:PhotographerGenresBml.cs
示例8: GetPhotosListByPhotographerId
public static List<Photo> GetPhotosListByPhotographerId(int pid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Photo> Photoslist = db.Photo.Where(v => v.Status == false && v.PhotographerId == pid).ToList();
return Photoslist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:PhotosBml.cs
示例9: GetCountryList
public static List<Country> GetCountryList()
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Country> countrylist = db.Country.Where(v => v.Status == false).ToList();
return countrylist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:CountryBml.cs
示例10: GetModuleList
public static List<Modules> GetModuleList(int moduleId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Modules> modulelist = db.Modules.Where(v => v.DeleteStatus == false && v.UpperId == moduleId).ToList();
return modulelist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:ModuleBml.cs
示例11: Find
public static Modules Find(int moduleid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
Modules module = db.Modules.Find(moduleid);
return module;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:ModuleBml.cs
示例12: GetGalleryList
public static List<Gallery> GetGalleryList(int photographerId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Gallery> glist = db.Gallery.Where(v => v.PhotographerId == photographerId && v.DeleteStatus == false).ToList();
return glist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:GalleryBml.cs
示例13: Find
public static RoleModules Find(int rmid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
RoleModules rm = db.RoleModules.Find(rmid);
return rm;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:RoleModulesBml.cs
示例14: GetGenresList
public static List<Genres> GetGenresList()
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Genres> genreslist = db.Genres.Where(v => v.DeleteStatus == false).ToList();
return genreslist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:GenresBml.cs
示例15: Find
public static Genres Find(int genreid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
Genres genre = db.Genres.Find(genreid);
return genre;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:GenresBml.cs
示例16: GetLowerModules
public static List<Modules> GetLowerModules(int upperid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Modules> moduleslist = db.Modules.Where(v => v.UpperId == upperid && v.DeleteStatus == false).ToList();
return moduleslist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:RoleBml.cs
示例17: Find
public static Country Find(int id)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
Country country = db.Country.Find(id);
return country;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:CountryBml.cs
示例18: Find
public static Credits Find(int creditId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
Credits credit = db.Credits.Find(creditId);
return credit;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:CreditsBml.cs
示例19: GetPhotosList
public static List<Photo> GetPhotosList(int galleryId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Photo> Photoslist = db.Photo.Where(v => v.Status == false && v.GalleryId == galleryId).ToList();
return Photoslist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:PhotosBml.cs
示例20: GetCredistList
public static List<Credits> GetCredistList()
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
List<Credits> creditslist = db.Credits.Where(v => v.Status == false).ToList();
return creditslist;
}
}
开发者ID:fatihmert93,项目名称:FotografPaketi,代码行数:8,代码来源:CreditsBml.cs
注:本文中的DataAccessLayer.FotografPaketiEntities类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论