protected async Task <IEnumerable <ModelEntity> > GetAllModelEntityAsync(DbCodeConfig config) { var list = await GetAllTable(config); if (list == null) { return(default);
public virtual async Task GenerateAllAsync(DbCodeConfig config) { var list = await GetAllTable(config); if (list == null) { return; } foreach (var(Schema, Table) in list) { var modelConfig = new ModelConfig { Schema = Schema, Table = Table, ConnectionString = config.ConnectionString, NameSpace = config.NameSpace, Database = config.Database, FilePath = config.FilePath }; await GenerateAsync(modelConfig); } }