Exemplo n.º 1
0
        protected async Task <IEnumerable <ModelEntity> > GetAllModelEntityAsync(DbCodeConfig config)
        {
            var list = await GetAllTable(config);

            if (list == null)
            {
                return(default);
Exemplo n.º 2
0
        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);
            }
        }