/// <summary>
 /// Create a new Resource object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="resourceTypeId">Initial value of the ResourceTypeId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static Resource CreateResource(global::System.Int32 id, global::System.Int32 resourceTypeId, global::System.String name)
 {
     Resource resource = new Resource();
     resource.Id = id;
     resource.ResourceTypeId = resourceTypeId;
     resource.Name = name;
     return resource;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Resource EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToResource(Resource resource)
 {
     base.AddObject("Resource", resource);
 }
 private void DetachResource(Resource entity)
 {
     entity.ResourceTypes = null;
 }
 private bool FilterResource(Resource entity)
 {
     return (entity.Id == this.ResourceId);
 }
 private void AttachResource(Resource entity)
 {
     entity.ResourceTypes = this;
 }