Exemple #1
0
        /// <summary>
        /// Deletes the specified business score id.
        /// </summary>
        /// <param name="BusinessScoreId">The business score id.</param>
        public static int Create(string Key, string Name)
        {
            BusinessScoreRow row = new BusinessScoreRow();

            row.Key  = Key;
            row.Name = Name;

            row.Update();
            return(row.PrimaryKeyId);
        }
Exemple #2
0
        /// <summary>
        /// Lists this instance.
        /// </summary>
        /// <returns></returns>
        public static BusinessScore[] List()
        {
            ArrayList retVal = new ArrayList();

            foreach (BusinessScoreRow row in BusinessScoreRow.List())
            {
                retVal.Add(new BusinessScore(row));
            }

            return((BusinessScore[])retVal.ToArray(typeof(BusinessScore)));
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BusinessScore"/> class.
 /// </summary>
 /// <param name="row">The row.</param>
 private BusinessScore(BusinessScoreRow row)
 {
     _srcRow = row;
 }
Exemple #4
0
 /// <summary>
 /// Deletes the specified business score id.
 /// </summary>
 /// <param name="BusinessScoreId">The business score id.</param>
 public static void Delete(int BusinessScoreId)
 {
     BusinessScoreRow.Delete(BusinessScoreId);
 }