This question is locked. New answers and comments are not allowed.
Hi...
Today, the fluent mapping besides being difficult to use, is a little confusing. About this I have been comparing your fluent mapping with other what I use too. Here's an example (I and many other developers believe it is an easier way).
public CompanyMapping()
{
Id(p => p.Id);
Map(c => c.Name);
Map(c => c.Root);
References(f => f.Company);
HasMany(f => f.Employees)
.Inverse()
.Cascade().All();
Schema("notDefaultDBO");
Table("notClassCompanyName");
}
In this way, I need to create one mapping class for each entity class, which may be a worse side.
What do you think? This would greatly facilitate.
Today, the fluent mapping besides being difficult to use, is a little confusing. About this I have been comparing your fluent mapping with other what I use too. Here's an example (I and many other developers believe it is an easier way).
public CompanyMapping()
{
Id(p => p.Id);
Map(c => c.Name);
Map(c => c.Root);
References(f => f.Company);
HasMany(f => f.Employees)
.Inverse()
.Cascade().All();
Schema("notDefaultDBO");
Table("notClassCompanyName");
}
In this way, I need to create one mapping class for each entity class, which may be a worse side.
What do you think? This would greatly facilitate.