VictorTzeng / Zxw.Framework.NetCore

基于EF Core的Code First模式的DotNetCore快速开发框架,其中包括DBContext、IOC组件autofac和AspectCore.Injector、代码生成器(也支持DB First)、基于AspectCore的memcache和Redis缓存组件,以及基于ICanPay的支付库和一些日常用的方法和扩展,比如批量插入、更新、删除以及触发器支持,当然还有demo。欢迎提交各种建议、意见和pr~

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repositories、Services代码生成路径问题

smanor opened this issue · comments

services.Configure<CodeGenerateOption>(options =>{
	options.ModelsNamespace = "WJ.Models";
	options.IServicesNamespace = "WJ.IServices";
	options.ServicesNamespace = "WJ.Services";
});

已经配置了,命名空间,但没有配置 CodeGenerateOption.OutputPath
看下源码生成路径是根据 var iRepositoryPath = options.Value.OutputPath + Delimiter + "IRepositories";

demo当中也没有没配置OutputPath,然后执行生成Repositories、Services代码,发现代码都生成 到盘根目录去了!该如何解决?
image

commented

OutputPath需要指定的

该如何指定的呢,不是要生成到不同WJ.IServices、WJ.Services中吗?还是生成到固定的文件夹里,然后拷贝过去!

commented

最好是拷贝过去