/// <summary> /// Deprecated Method for adding a new object to the UserFlagAssociations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserFlagAssociations(UserFlagAssociation userFlagAssociation) { base.AddObject("UserFlagAssociations", userFlagAssociation); }
/// <summary> /// Create a new UserFlagAssociation object. /// </summary> /// <param name="userFlagAssociationId">Initial value of the UserFlagAssociationId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="flagId">Initial value of the FlagId property.</param> public static UserFlagAssociation CreateUserFlagAssociation(global::System.Int32 userFlagAssociationId, global::System.String userId, global::System.Int32 flagId) { UserFlagAssociation userFlagAssociation = new UserFlagAssociation(); userFlagAssociation.UserFlagAssociationId = userFlagAssociationId; userFlagAssociation.UserId = userId; userFlagAssociation.FlagId = flagId; return userFlagAssociation; }