Пример #1
0
        public ScienceStatusViewModel(ScienceStatus scienceStatus)
        {
            if (scienceStatus == null)
            {
                throw new ArgumentNullException("scienceStatus");
            }

            this.Model = scienceStatus;
        }
Пример #2
0
 /// <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;
 }
Пример #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ScienceStatuses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToScienceStatuses(ScienceStatus scienceStatus)
 {
     base.AddObject("ScienceStatuses", scienceStatus);
 }