public Repository(Demo1Context dbContext) { _dbContext = dbContext; // _dbContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; }
void Awake() { context = new Demo1Context(this); //context.Start(); //启动StrangIoC框架 }