Exemplo n.º 1
0
        /// <summary>
        /// Creates the specified name.
        /// </summary>
        /// <param name="Name">The name.</param>
        /// <param name="IsDefault">if set to <c>true</c> [is default].</param>
        /// <returns></returns>
        public static int Create(string Name, bool IsDefault)
        {
            BasePlanSlotRow row = new BasePlanSlotRow();

            row.Name      = Name;
            row.IsDefault = IsDefault;
            row.Update();

            return(row.PrimaryKeyId);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Lists this instance.
        /// </summary>
        /// <returns></returns>
        public static BasePlanSlot[] List()
        {
            ArrayList retVal = new ArrayList();

            foreach (BasePlanSlotRow row in BasePlanSlotRow.List())
            {
                retVal.Add(new BasePlanSlot(row));
            }

            return((BasePlanSlot[])retVal.ToArray(typeof(BasePlanSlot)));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Deletes the specified base plan slot id.
 /// </summary>
 /// <param name="BasePlanSlotId">The base plan slot id.</param>
 public static void Delete(int BasePlanSlotId)
 {
     BasePlanSlotRow.Delete(BasePlanSlotId);
 }
Exemplo n.º 4
0
 private BasePlanSlot(BasePlanSlotRow row)
 {
     _srcRow = row;
 }