Exemplo n.º 1
0
 public ConferenceViewModel(Conference conference)
 {
     if (conference == null)
     {
         throw new ArgumentNullException("conference");
     }
     this.Model = conference;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Conferences EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConferences(Conference conference)
 {
     base.AddObject("Conferences", conference);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create a new Conference 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 Conference CreateConference(global::System.Guid id, global::System.String name, global::System.String code, global::System.Int32 sourceId)
 {
     Conference conference = new Conference();
     conference.Id = id;
     conference.Name = name;
     conference.Code = code;
     conference.SourceId = sourceId;
     return conference;
 }