本文整理汇总了C#中DataAccessLayer.FotografPaketiEntities类的典型用法代码示例。如果您正苦于以下问题:C# FotografPaketiEntities类的具体用法?C# FotografPaketiEntities怎么用?C# FotografPaketiEntities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FotografPaketiEntities类属于DataAccessLayer命名空间,在下文中一共展示了FotografPaketiEntities类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetHowManyPhotographerInCity
public static int GetHowManyPhotographerInCity(int cityId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
return db.PhotographerCities.Where(v => v.CityId == cityId).Count();
}
}
示例2: Find
public static MemberFavorites Find(int mfid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
return db.MemberFavorites.Find(mfid);
}
}
示例3: Find
public static Gallery Find(int id)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
return db.Gallery.Find(id);
}
}
示例4: Find
public static PhotographerGenres Find(int pgid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
return db.PhotographerGenres.Find(pgid);
}
}
示例5: Find
public static City Find(int cityId)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
City city = db.City.Find(cityId);
return city;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例11: Find
public static Modules Find(int moduleid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
Modules module = db.Modules.Find(moduleid);
return module;
}
}
示例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;
}
}
示例13: Find
public static RoleModules Find(int rmid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
RoleModules rm = db.RoleModules.Find(rmid);
return rm;
}
}
示例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;
}
}
示例15: Find
public static Genres Find(int genreid)
{
using (FotografPaketiEntities db = new FotografPaketiEntities())
{
Genres genre = db.Genres.Find(genreid);
return genre;
}
}