Example #1
0
 public Repository(Demo1Context dbContext)
 {
     _dbContext = dbContext;
     // _dbContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
 }
Example #2
0
    void Awake()
    {
        context = new Demo1Context(this);

        //context.Start(); //启动StrangIoC框架
    }