当前位置: 首页>>代码示例>>C#>>正文


C# IDbContext.Set方法代码示例

本文整理汇总了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>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:7,代码来源:SportService.cs

示例2: CompetitionRepresentativeUserService

 public CompetitionRepresentativeUserService(IDbContext dbContext)
 {
     _dbContext = dbContext;
     _competitionRepresentativeUsers = dbContext.Set<CompetitionRepresentativeUser>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:5,代码来源:CompetitionRepresentativeUserService.cs

示例3: StudyFieldService

 public StudyFieldService(IDbContext dbContext)
 {
     _dbcontext = dbContext;
     _studyFields = dbContext.Set<StudyField>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:5,代码来源:StudyFieldService.cs

示例4: UniversityService

 public UniversityService(IDbContext dbContext)
 {
     _dbcontext = dbContext;
     _universities = dbContext.Set<University>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:5,代码来源:UniversityService.cs

示例5: AnnouncementService

 public AnnouncementService(IDbContext dbContext)
 {
     _announcements = dbContext.Set<Announcement>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:4,代码来源:AnnouncementService.cs

示例6: PresentedSportService

 public PresentedSportService(IDbContext dbContext)
 {
     _competitionSports = dbContext.Set<CompetitionSport>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:4,代码来源:PresentedSportService.cs

示例7: DormService

 public DormService(IDbContext dbContext)
 {
     _dbContext = dbContext;
     _dorms = dbContext.Set<Dorm>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:5,代码来源:DormService.cs

示例8: NewsService

 public NewsService(IDbContext dbContext)
 {
     _dbContext = dbContext;
     _newses = dbContext.Set<News>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:5,代码来源:NewsService.cs

示例9: TeamColorService

 public TeamColorService(IDbContext dbContext)
 {
     _dbContext = dbContext;
     _teamColors = dbContext.Set<TeamColor>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:5,代码来源:TeamColorService.cs

示例10: StudentRepository

 public StudentRepository(IDbContext dbContext)
 {
     _students = dbContext.Set<Student>();
 }
开发者ID:690674930,项目名称:DDD.Sample,代码行数:4,代码来源:StudentRepository.cs

示例11: CommonTechnicalStaffService

 public CommonTechnicalStaffService(IDbContext dbContext)
 {
     _dbContext = dbContext;
     _competitionCommonTechnicalStaffs = dbContext.Set<CompetitionCommonTechnicalStaff>();
     _technicalStaffs = dbContext.Set<TechnicalStaff>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:6,代码来源:CommonTechnicalStaffService.cs

示例12: TeacherRepository

 public TeacherRepository(IDbContext dbContext)
 {
     _teachers = dbContext.Set<Teacher>();
 }
开发者ID:690674930,项目名称:DDD.Sample,代码行数:4,代码来源:TeacherRepository.cs

示例13: UserService

 public UserService(IDbContext dbContext)
 {
     _dbContext = dbContext;
     _users = dbContext.Set<User>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:5,代码来源:UserService.cs

示例14: ParticipationService

 public ParticipationService(IDbContext dbContext)
 {
     _dbContext = dbContext;
     _participates = dbContext.Set<Participation>();
 }
开发者ID:raminmjj,项目名称:SportsSystem,代码行数:5,代码来源:ParticipationService.cs

示例15: CowRepository

 public CowRepository(IDbContext context)
 {
     Entities = context;
     DbSet = context.Set<Cow>();
 }
开发者ID:dragana-berber,项目名称:FarmAppReborn,代码行数:5,代码来源:CowRepository.cs


注:本文中的IDbContext.Set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。