public virtual VfpContextModel GetModel(AbpVfpContext dbContext) { return(ModelCache.GetOrAdd( dbContext.GetType(), _ => CreateModel(dbContext) )); }
protected virtual VfpContextModel CreateModel(AbpVfpContext dbContext) { var modelBuilder = CreateModelBuilder(); BuildModelFromDbContextType(modelBuilder, dbContext.GetType()); BuildModelFromDbContextInstance(modelBuilder, dbContext); return(modelBuilder.Build()); }
protected virtual void BuildModelFromDbContextInstance(IVfpModelBuilder modelBuilder, AbpVfpContext dbContext) { dbContext.CreateModel(modelBuilder); }