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

多层实体访问 #51

Closed
ElderJames opened this issue Mar 21, 2019 · 0 comments
Closed

多层实体访问 #51

ElderJames opened this issue Mar 21, 2019 · 0 comments
Milestone

Comments

@ElderJames
Copy link
Member

class User
{
    public string Name {get; set;}
    public int Age { get; set; }
    public Address Address {get; set;}
}

class Address
{
    public string Province {get;set;}

    public string City { get; set; }
}


public interface IUserRepository
{
    public int Insert(User user);
}

   <Statement Id="Insert">
        Insert INTO User(Name,Age)VALUES(@Name,@Age);
       <Spread Property="Address">
        Insert INTO Address(Province,City)VALUES(@Province,@City);
       </Spread>
   </Statement>
@Ahoo-Wang Ahoo-Wang added this to the 4.0.1 milestone Mar 21, 2019
@Ahoo-Wang Ahoo-Wang modified the milestones: 4.0.1, 4.1.0 Apr 1, 2019
@Ahoo-Wang Ahoo-Wang modified the milestones: 4.1.0, 4.2.0 Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants