Repositories、Services代码生成路径问题
smanor opened this issue · comments
smanor commented
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代码,发现代码都生成 到盘根目录去了!该如何解决?
vzeng commented
OutputPath需要指定的
smanor commented
该如何指定的呢,不是要生成到不同WJ.IServices、WJ.Services中吗?还是生成到固定的文件夹里,然后拷贝过去!
vzeng commented
最好是拷贝过去