/// <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); }
/// <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))); }
/// <summary> /// Initializes a new instance of the <see cref="BusinessScore"/> class. /// </summary> /// <param name="row">The row.</param> private BusinessScore(BusinessScoreRow row) { _srcRow = row; }
/// <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); }