private IDbObjectStateEntry ToDbObjectStateEntry(ObjectStateEntry objectStateEntry) { IDbObjectStateEntry dbObjectStateEntry = null; if (objectStateEntry != null) { dbObjectStateEntry = new DbObjectStateEntry { Entity = objectStateEntry.Entity, EntityKey = objectStateEntry.EntityKey, State = this.ToDbObjectState(objectStateEntry.State) }; } return dbObjectStateEntry; }
private IDbObjectStateEntry ToDbObjectStateEntry(ObjectStateEntry objectStateEntry) { IDbObjectStateEntry dbObjectStateEntry = null; if (objectStateEntry != null) { dbObjectStateEntry = new DbObjectStateEntry { Entity = objectStateEntry.Entity, EntityKey = objectStateEntry.EntityKey, State = this.ToDbObjectState(objectStateEntry.State) }; } return(dbObjectStateEntry); }