示例#1
0
        public ScienceDegreeViewModel(ScienceDegree obj)
        {
            if (obj == null)
            {
                throw new ArgumentNullException("scienceDegree");
            }

            this.Model = obj;
        }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ScienceDegrees EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToScienceDegrees(ScienceDegree scienceDegree)
 {
     base.AddObject("ScienceDegrees", scienceDegree);
 }