public ScienceDegreeViewModel(ScienceDegree obj) { if (obj == null) { throw new ArgumentNullException("scienceDegree"); } this.Model = obj; }
/// <summary> /// Create a new ScienceDegree 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 ScienceDegree CreateScienceDegree(global::System.Guid id, global::System.String name, global::System.String code, global::System.Int32 sourceId) { ScienceDegree scienceDegree = new ScienceDegree(); scienceDegree.Id = id; scienceDegree.Name = name; scienceDegree.Code = code; scienceDegree.SourceId = sourceId; return scienceDegree; }
/// <summary> /// Deprecated Method for adding a new object to the ScienceDegrees EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToScienceDegrees(ScienceDegree scienceDegree) { base.AddObject("ScienceDegrees", scienceDegree); }