本文整理汇总了C#中IDbContext.Set方法的典型用法代码示例。如果您正苦于以下问题:C# IDbContext.Set方法的具体用法?C# IDbContext.Set怎么用?C# IDbContext.Set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDbContext
的用法示例。
在下文中一共展示了IDbContext.Set方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SportService
public SportService(IDbContext dbContext)
{
_dbContext = dbContext;
_sports = dbContext.Set<Sport>();
_sportCategories = dbContext.Set<SportCategory>();
_sportDetails = dbContext.Set<SportDetail>();
}
示例2: CompetitionRepresentativeUserService
public CompetitionRepresentativeUserService(IDbContext dbContext)
{
_dbContext = dbContext;
_competitionRepresentativeUsers = dbContext.Set<CompetitionRepresentativeUser>();
}
示例3: StudyFieldService
public StudyFieldService(IDbContext dbContext)
{
_dbcontext = dbContext;
_studyFields = dbContext.Set<StudyField>();
}
示例4: UniversityService
public UniversityService(IDbContext dbContext)
{
_dbcontext = dbContext;
_universities = dbContext.Set<University>();
}
示例5: AnnouncementService
public AnnouncementService(IDbContext dbContext)
{
_announcements = dbContext.Set<Announcement>();
}
示例6: PresentedSportService
public PresentedSportService(IDbContext dbContext)
{
_competitionSports = dbContext.Set<CompetitionSport>();
}
示例7: DormService
public DormService(IDbContext dbContext)
{
_dbContext = dbContext;
_dorms = dbContext.Set<Dorm>();
}
示例8: NewsService
public NewsService(IDbContext dbContext)
{
_dbContext = dbContext;
_newses = dbContext.Set<News>();
}
示例9: TeamColorService
public TeamColorService(IDbContext dbContext)
{
_dbContext = dbContext;
_teamColors = dbContext.Set<TeamColor>();
}
示例10: StudentRepository
public StudentRepository(IDbContext dbContext)
{
_students = dbContext.Set<Student>();
}
示例11: CommonTechnicalStaffService
public CommonTechnicalStaffService(IDbContext dbContext)
{
_dbContext = dbContext;
_competitionCommonTechnicalStaffs = dbContext.Set<CompetitionCommonTechnicalStaff>();
_technicalStaffs = dbContext.Set<TechnicalStaff>();
}
示例12: TeacherRepository
public TeacherRepository(IDbContext dbContext)
{
_teachers = dbContext.Set<Teacher>();
}
示例13: UserService
public UserService(IDbContext dbContext)
{
_dbContext = dbContext;
_users = dbContext.Set<User>();
}
示例14: ParticipationService
public ParticipationService(IDbContext dbContext)
{
_dbContext = dbContext;
_participates = dbContext.Set<Participation>();
}
示例15: CowRepository
public CowRepository(IDbContext context)
{
Entities = context;
DbSet = context.Set<Cow>();
}