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.");
     }
 }
Example #2
0
        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;                      
 }
Example #4
0
 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;            
 }
Example #8
0
		public Event()
        {
            this.SeriesID = null;
            this.CollectionDate = DateTime.Now;            
            this.ModificationState = ModificationState.New;
		}
Example #9
0
 public static ModificationState NextState(this ModificationState state) =>
 (ModificationState)(((int)state + 1) % stateCount);