Inheritance: System.Data.Objects.DataClasses.EntityObject
コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SourceTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSourceTypes(SourceType sourceType)
 {
     base.AddObject("SourceTypes", sourceType);
 }
コード例 #2
0
 /// <summary>
 /// Create a new SourceType object.
 /// </summary>
 /// <param name="sourceTypeId">Initial value of the SourceTypeId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 public static SourceType CreateSourceType(global::System.Int32 sourceTypeId, global::System.String name, global::System.DateTime createdDate)
 {
     SourceType sourceType = new SourceType();
     sourceType.SourceTypeId = sourceTypeId;
     sourceType.Name = name;
     sourceType.CreatedDate = createdDate;
     return sourceType;
 }