/// <summary>
 /// Deprecated Method for adding a new object to the Bans EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBans(Ban ban)
 {
     base.AddObject("Bans", ban);
 }
 /// <summary>
 /// Create a new Ban object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="adminID">Initial value of the AdminID property.</param>
 /// <param name="fromDate">Initial value of the FromDate property.</param>
 /// <param name="toDate">Initial value of the ToDate property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 public static Ban CreateBan(global::System.Guid id, global::System.Guid userID, global::System.Guid adminID, global::System.DateTime fromDate, global::System.DateTime toDate, global::System.Boolean isDeleted)
 {
     Ban ban = new Ban();
     ban.ID = id;
     ban.UserID = userID;
     ban.AdminID = adminID;
     ban.FromDate = fromDate;
     ban.ToDate = toDate;
     ban.IsDeleted = isDeleted;
     return ban;
 }