示例#1
0
 /// <summary>
 /// Create a new EntityType object.
 /// </summary>
 /// <param name="entityTypeId">Initial value of the EntityTypeId property.</param>
 /// <param name="entityTypeName">Initial value of the EntityTypeName property.</param>
 /// <param name="entityDescription">Initial value of the EntityDescription property.</param>
 /// <param name="locTypeId">Initial value of the LocTypeId property.</param>
 /// <param name="owningLocTypeId">Initial value of the OwningLocTypeId property.</param>
 public static EntityType CreateEntityType(global::System.Int32 entityTypeId, global::System.String entityTypeName, global::System.String entityDescription, global::System.Int32 locTypeId, global::System.Int32 owningLocTypeId)
 {
     EntityType entityType = new EntityType();
     entityType.EntityTypeId = entityTypeId;
     entityType.EntityTypeName = entityTypeName;
     entityType.EntityDescription = entityDescription;
     entityType.LocTypeId = locTypeId;
     entityType.OwningLocTypeId = owningLocTypeId;
     return entityType;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the EntityTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEntityTypes(EntityType entityType)
 {
     base.AddObject("EntityTypes", entityType);
 }