Exemplo n.º 1
0
 /// <summary>
 /// 用于向 ServiceArea EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToServiceArea(ServiceArea serviceArea)
 {
     base.AddObject("ServiceArea", serviceArea);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 创建新的 ServiceArea 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="value">Value 属性的初始值。</param>
 /// <param name="parentId">ParentId 属性的初始值。</param>
 /// <param name="areaType">AreaType 属性的初始值。</param>
 public static ServiceArea CreateServiceArea(global::System.Int32 id, global::System.String value, global::System.Int32 parentId, global::System.String areaType)
 {
     ServiceArea serviceArea = new ServiceArea();
     serviceArea.Id = id;
     serviceArea.Value = value;
     serviceArea.ParentId = parentId;
     serviceArea.AreaType = areaType;
     return serviceArea;
 }