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

Easier state entry access when adding entities #498

Closed
anpete opened this issue Aug 6, 2014 · 0 comments
Closed

Easier state entry access when adding entities #498

anpete opened this issue Aug 6, 2014 · 0 comments
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@anpete
Copy link
Contributor

anpete commented Aug 6, 2014

Consider changing DbSet.Add to return the EntityEntry so that it's easier to specify shadow values.

E.g. context.Set().Add(employee)["ShadowProp"] = "Foo";

@divega divega modified the milestones: 1.0.0-beta1, 1.0.0-rc1 Oct 20, 2014
@rowanmiller rowanmiller modified the milestones: 7.0.0-rc1, 7.0.0 Nov 25, 2014
ajcvickers added a commit that referenced this issue Dec 2, 2014
See https://github.com/aspnet/EntityFramework/wiki/Design-Meeting-Notes:-October-30,-2014#dbcontextdbset-methods

Specifically:
- Renamed Delete on DbContext to Remove
- Added Attach
- Removed async methods except for Add
- Added non-generic overloads on DbContext
- Removed XxxRange methods and added params overloads
- Changed return types to EntityEntry--see Issue #498

This is part of Issue #193
ajcvickers added a commit that referenced this issue Dec 2, 2014
See https://github.com/aspnet/EntityFramework/wiki/Design-Meeting-Notes:-October-30,-2014#dbcontextdbset-methods

Specifically:
- Renamed Delete on DbContext to Remove
- Added Attach
- Removed async methods except for Add
- Added non-generic overloads on DbContext
- Removed XxxRange methods and added params overloads
- Changed return types to EntityEntry--see Issue #498

This is part of Issue #193
ajcvickers added a commit that referenced this issue Dec 2, 2014
See https://github.com/aspnet/EntityFramework/wiki/Design-Meeting-Notes:-October-30,-2014#dbcontextdbset-methods

Specifically:
- Renamed Delete on DbContext to Remove
- Added Attach
- Removed async methods except for Add
- Added non-generic overloads on DbContext
- Removed XxxRange methods and added params overloads
- Changed return types to EntityEntry--see Issue #498

This is part of Issue #193
@ajcvickers ajcvickers modified the milestones: 7.0.0-beta2, 7.0.0 Dec 2, 2014
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 15, 2022
@ajcvickers ajcvickers modified the milestones: 1.0.0-beta2, 1.0.0 Oct 15, 2022
@ajcvickers ajcvickers removed their assignment Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

No branches or pull requests

4 participants