public void Register(ISubActivityContext context) { if (context is IVerticalContext) { _verticalContext = (IVerticalContext)context; } else if (context is ICommunityContext) { _communityContext = (ICommunityContext)context; } else if (context is ILocationContext) { _locationContext = (ILocationContext)context; } else if (context is IChannelContext) { _channelContext = (IChannelContext)context; } }
public CommunityRepository(ICommunityContext context) { _context = context; }
public GenericRepository(ICommunityContext context) { this.Context = ((CommunityContext)context); this.DbSet = ((CommunityContext)context).Set <TEntity>(); }
public UserRepository(ICommunityContext context) : base(context) { }