public ScienceStatusViewModel(ScienceStatus scienceStatus) { if (scienceStatus == null) { throw new ArgumentNullException("scienceStatus"); } this.Model = scienceStatus; }
/// <summary> /// Create a new ScienceStatus object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="sourceId">Initial value of the SourceId property.</param> public static ScienceStatus CreateScienceStatus(global::System.Guid id, global::System.String name, global::System.String code, global::System.Int32 sourceId) { ScienceStatus scienceStatus = new ScienceStatus(); scienceStatus.Id = id; scienceStatus.Name = name; scienceStatus.Code = code; scienceStatus.SourceId = sourceId; return scienceStatus; }
/// <summary> /// Deprecated Method for adding a new object to the ScienceStatuses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToScienceStatuses(ScienceStatus scienceStatus) { base.AddObject("ScienceStatuses", scienceStatus); }