c# - EF Power Tools - reverse engineer code first into different folders -
i'm working entityframework 6 , i'm trying find tool generate models database without edmx file (code first existing database). mean classes :
public class util_emailmap : entitytypeconfiguration<util_email> { public util_emailmap() { // primary key this.haskey(t => t.id_util_email); // properties this.property(t => t.email) .isrequired() .hasmaxlength(100); // table & column mappings this.totable("util_email", "mydatabase"); this.property(t => t.id_util_email).hascolumnname("id_util_email"); this.property(t => t.email).hascolumnname("email"); this.property(t => t.date_creation).hascolumnname("date_creation"); } }
and classes :
public partial class util_email { public util_email() { this.utils = new list<util>(); } public long id_util_email { get; set; } public string email { get; set; } public system.datetime date_creation { get; set; } public virtual icollection<util> utils { get; set; } }
so i've tried entity framework power tools problem generates classes folder hard coded in dll... can't change :(. , i've own architecture (onion architecture), it's problem.
i've seen this topic don't find answerer's new vsix...
i'm not closed of other tool. 1 convenient me if change destination folders... i've tried others don't manage want :/
thanks lot in advance !
maybe option code first database solution:
here detailed tutorial option.
to generate models in desired folder can right click ond folder, click add new element , follow instructions of tutorial. models generated selected folder.
Comments
Post a Comment