예제 #1
0
        /// <summary>
        /// Create a new Moderate object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="moderatorDatabaseId">Initial value of the ModeratorDatabaseId property.</param>
        /// <param name="clientDatabaseId">Initial value of the ClientDatabaseId property.</param>
        /// <param name="serverGroup">Initial value of the ServerGroup property.</param>
        /// <param name="type">Initial value of the Type property.</param>
        /// <param name="creation">Initial value of the Creation property.</param>
        public static Moderate CreateModerate(global::System.Guid id, global::System.Int32 moderatorDatabaseId, global::System.Int32 clientDatabaseId, global::System.Int32 serverGroup, global::System.Byte type, global::System.DateTime creation)
        {
            Moderate moderate = new Moderate();

            moderate.Id = id;
            moderate.ModeratorDatabaseId = moderatorDatabaseId;
            moderate.ClientDatabaseId    = clientDatabaseId;
            moderate.ServerGroup         = serverGroup;
            moderate.Type     = type;
            moderate.Creation = creation;
            return(moderate);
        }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Moderate EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToModerate(Moderate moderate)
 {
     base.AddObject("Moderate", moderate);
 }