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

Add the mapping strategy to support the table name and column name #131

Open
jack-gaojz opened this issue Mar 7, 2022 · 0 comments
Open

Comments

@jack-gaojz
Copy link

In the real scenario, we should create the datatable with the different name conventions. For example: tbl_customer (table name), id(column name), first_name(column name). But the domain object should follow the C# name convention, for example

public class Customer
{
        public int Id { get; set; }
        public string FirstName { get; set; }
}

We can define a interface IMappingStrategy then implement different strategies:
image

We can define the global strategy or set the strategy for the speicifed domain object event the property. We will generate the SQL with the defined strategies. That will be wonderful feature.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant