예제 #1
0
 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;
     }
 }
예제 #2
0
 public CommunityRepository(ICommunityContext context)
 {
     _context = context;
 }
예제 #3
0
 public GenericRepository(ICommunityContext context)
 {
     this.Context = ((CommunityContext)context);
     this.DbSet   = ((CommunityContext)context).Set <TEntity>();
 }
예제 #4
0
 public UserRepository(ICommunityContext context) : base(context)
 {
 }