private static EntityState GetEntityStateFromModificationState(ModificationState state) { switch (state) { case ModificationState.Unchanged: return EntityState.Unchanged; case ModificationState.Added: return EntityState.Added; case ModificationState.Modified: return EntityState.Modified; case ModificationState.Deleted: return EntityState.Deleted; default: throw new ArgumentException("No matching entity state for given modification state."); } }
private static EntityState GetEntityStateFromModificationState(ModificationState state) { switch (state) { case ModificationState.Unchanged: return(EntityState.Unchanged); case ModificationState.Added: return(EntityState.Added); case ModificationState.Modified: return(EntityState.Modified); case ModificationState.Deleted: return(EntityState.Deleted); default: throw new ArgumentException("No matching entity state for given modification state."); } }
public IdentificationUnitAnalysis() { this.ModificationState = ModificationState.New; this.AnalysisDate = DateTime.Now; }
public EventSeries() { this.Description = string.Empty; this.SeriesCode = string.Empty; this.SeriesStart = DateTime.Now; this.SeriesEnd = null; this.SeriesID = 0; this.ModificationState = ModificationState.New; }
public IdentificationUnit() { this.ModificationState = ModificationState.New; this.AnalysisDate = DateTime.Now;//TODO Something useful? this.RelatedUnitID = null; this.Qualification = string.Empty; }
public EventProperty() { this.ModificationState = ModificationState.New; }
public Specimen() { this.AccessionNumber = null; this.ModificationState = ModificationState.New; }
public Event() { this.SeriesID = null; this.CollectionDate = DateTime.Now; this.ModificationState = ModificationState.New; }
public static ModificationState NextState(this ModificationState state) => (ModificationState)(((int)state + 1) % stateCount);