Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create wiki article about mappings configuration and how to support mappings from other ORM/custom mapping sources #18

Open
MaceWindu opened this issue Nov 3, 2017 · 5 comments
Assignees

Comments

@MaceWindu
Copy link
Contributor

No description provided.

@MaceWindu MaceWindu self-assigned this Nov 3, 2017
@max-arshinov
Copy link

Hi. Is there a way to avoid using [Table] and [Column] attributes? I am wondering if I can use same POCO classes with EF and linq 2 db. A lot of code is written with EF. If I can reuse it's mapping I can refactor code from EF to linq 2 db step by step.

@sdanyliv
Copy link
Member

Yes, check this discussion thread linq2db/linq2db#900

@max-arshinov
Copy link

Thank you. So to support Data Annotation Attributes I need to create MappingSchema and then use reflection to build entity mappings using GetFluentMappingBuilder().Entity<>..., right?

@sdanyliv
Copy link
Member

Not exactly, based on discussion thread you can convert current attributes to our attributes. But yes you need to define mapping schema, for example in DataConnection constructor.

@MaceWindu
Copy link
Contributor Author

Closing for now...

@MaceWindu MaceWindu reopened this May 26, 2019
@MaceWindu MaceWindu transferred this issue from linq2db/linq2db May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants