TortugaResearch / Tortuga.Chain

A fluent ORM for .NET
Other
336 stars 22 forks source link

GetByKeyList Inferred Table Enhancement #395

Open Grauenwolf opened 3 years ago

Grauenwolf commented 3 years ago

Currently we have to specify the table name when we want to override the column name. For example:

var children = m_DataSource.GetByKeyList(ProductTable, "ProductLineKey",
                results.Select(pl => pl.ProductLineKey)).ToCollection<Product>().Execute();

We would like to reduce that to:

var children = m_DataSource.GetByKeyList<Product>("ProductLineKey",
                results.Select(pl => pl.ProductLineKey)).ToCollection().Execute();