Пример #1
0
 /// <summary>
 /// Create a new ResourceType object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="isTaxed">Initial value of the IsTaxed property.</param>
 public static ResourceType CreateResourceType(global::System.Int32 id, global::System.String name, global::System.Boolean isTaxed)
 {
     ResourceType resourceType = new ResourceType();
     resourceType.Id = id;
     resourceType.Name = name;
     resourceType.IsTaxed = isTaxed;
     return resourceType;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ResourceTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToResourceTypes(ResourceType resourceType)
 {
     base.AddObject("ResourceTypes", resourceType);
 }