/// <summary> /// Deprecated Method for adding a new object to the TypePermissionObjects EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTypePermissionObjects(TypePermissionObject typePermissionObject) { base.AddObject("TypePermissionObjects", typePermissionObject); }
/// <summary> /// Create a new TypePermissionObject object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="allowRead">Initial value of the AllowRead property.</param> /// <param name="allowWrite">Initial value of the AllowWrite property.</param> /// <param name="allowCreate">Initial value of the AllowCreate property.</param> /// <param name="allowDelete">Initial value of the AllowDelete property.</param> /// <param name="allowNavigate">Initial value of the AllowNavigate property.</param> public static TypePermissionObject CreateTypePermissionObject(global::System.Int32 id, global::System.Boolean allowRead, global::System.Boolean allowWrite, global::System.Boolean allowCreate, global::System.Boolean allowDelete, global::System.Boolean allowNavigate) { TypePermissionObject typePermissionObject = new TypePermissionObject(); typePermissionObject.ID = id; typePermissionObject.AllowRead = allowRead; typePermissionObject.AllowWrite = allowWrite; typePermissionObject.AllowCreate = allowCreate; typePermissionObject.AllowDelete = allowDelete; typePermissionObject.AllowNavigate = allowNavigate; return typePermissionObject; }