コード例 #1
0
 protected override void AddValue(string value)
 {
     PropertyType pt = new PropertyType();
     pt.idPropertyType = FreeIndex;
     pt.namePropertyType = value;
     EntitiesHolder.Entities.PropertyType.AddObject(pt);
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PropertyType EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPropertyType(PropertyType propertyType)
 {
     base.AddObject("PropertyType", propertyType);
 }
コード例 #3
0
 /// <summary>
 /// Create a new PropertyType object.
 /// </summary>
 /// <param name="idPropertyType">Initial value of the idPropertyType property.</param>
 /// <param name="namePropertyType">Initial value of the namePropertyType property.</param>
 public static PropertyType CreatePropertyType(global::System.Decimal idPropertyType, global::System.String namePropertyType)
 {
     PropertyType propertyType = new PropertyType();
     propertyType.idPropertyType = idPropertyType;
     propertyType.namePropertyType = namePropertyType;
     return propertyType;
 }