Contract to implementation
See original GitHub issueIgor, pls, help.
The code in the system is built on the contracts, but not to implement them. How i can mapping contract to implementation DTO, it in order to understand the functional Linq2DB.
Example.
[Table("MyTableA")]
public class A : IA
{
[Identity, Column("Id"), PrimaryKey(1)]
public Guid Id {get; set;}
[Column("Code")]
public string Code {get;set;}
}
public interface IA : IEntity<Guid>
{
string Code {get;set;}
}
public interface IEntity<T> { T Id {get;set;} }
To use.
var ret = from a in db.GetTable<IA>()......
Previously, I used bltulkit. It was FluentMap<TContract> small service could very quickly automapp implementation to contracts. I try use FluentMappingBuilder and
LinqToDbMappingClass<TContract, TEntity> : FluentMappingBuilder
this.Entity<TEntity>()
.Entity<TContract>();
or
mappingSchema.SetConverter<TContract, TEntity>(e => new TEntity());
but they are designed for other
Issue Analytics
- State:
- Created 8 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
The Fundamentals of Contract Implementation - Fill
A contract implementation process is a set of best practices and guidelines that helps organizations ensure that their contracts are being adhered to....
Read more >Contract Implementation
Contract Implementation ; Migration, The movement of organisations to a new contract post "go-live". ; Mobilisation, The process of moving from contract award...
Read more >contract implementation Definition
Implementation Period means the period from the date of signing of the Agreement and up to the issuance of Final Acceptance Certificate for...
Read more >Contract Implementation
We develop a supplier engagement plan, and a RACI matrix for implementation & future state. At this stage the fully executed contract and...
Read more >How to develop and implement a new contract ...
Four keys to developing and implementing a new contract management system · 1. Assess the current state of contract management · 2. Get...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will post update here. I have to clarify proposed interfaces. I already see weaknesses and possibly i have missed something important.
I think implementing this is not a Rocket Science. But when… We have to find time. Currently i’m busy with fixing bugs.