Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

New Post: EF Entities vs. Domain Model Entities - Hard dependencies on Data Access/Persistence in core domain classes

$
0
0
Hi fgalarraga,

Did you add the following code to a new project? Thanks a lot for sharing.
public interface IObjectState
    {
        [NotMapped]
        ObjectState ObjectState { get; set; }
    }

public enum ObjectState
    {
        Unchanged,
        Added,
        Modified,
        Deleted
    }


 public abstract class Entity : IObjectState
 {
    [NotMapped]
    public ObjectState ObjectState { get; set; }
 }

Viewing all articles
Browse latest Browse all 1539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>