Beispiel #1
0
 public ServiceManager()
 {
     Scope   = G.TContainer.CreateScope();
     Context = new T2CEntities();
     Scope.ManageResources(Context);
 }
 public UserRepository(T2CEntities context) : base(context)
 {
 }
 public CommentRepository(T2CEntities context) : base(context)
 {
 }
 public PostRepository(T2CEntities context) : base(context)
 {
 }
Beispiel #5
0
 public BaseRepository(T2CEntities context)
 {
     AutoSave     = true;
     this.context = context;
 }
Beispiel #6
0
 public void ReInit(params object[] initParams)
 {
     //params order: 0/context
     context  = (T2CEntities)initParams[0];
     AutoSave = true;
 }
 public QuestionService(T2CEntities context)
 {
     repository = G.TContainer.Resolve <IQuestionRepository>(context);
 }
Beispiel #8
0
 public AnswerService(T2CEntities context)
 {
     repository = G.TContainer.Resolve <IAnswerRepository>(context);
 }
 public PostService(T2CEntities context)
 {
     repository = G.TContainer.Resolve <IPostRepository>(context);
 }
Beispiel #10
0
 public CommentService(T2CEntities context)
 {
     repository = G.TContainer.Resolve <ICommentRepository>(context);
 }
 public QuestionRepository(T2CEntities context) : base(context)
 {
 }