/// <summary> /// Deprecated Method for adding a new object to the Resources EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToResources(Resource resource) { base.AddObject("Resources", resource); }
/// <summary> /// Create a new Resource object. /// </summary> /// <param name="typeName">Initial value of the TypeName property.</param> /// <param name="property">Initial value of the Property property.</param> /// <param name="langId">Initial value of the LangId property.</param> /// <param name="value">Initial value of the Value property.</param> /// <param name="isSystem">Initial value of the IsSystem property.</param> public static Resource CreateResource(global::System.String typeName, global::System.String property, global::System.Int32 langId, global::System.String value, global::System.Boolean isSystem) { Resource resource = new Resource(); resource.TypeName = typeName; resource.Property = property; resource.LangId = langId; resource.Value = value; resource.IsSystem = isSystem; return resource; }