/// <summary> /// Ensures that an object with the specified name exists, while creating other properties are set to their default values /// </summary> /// <param name="i_sName">Name</param> /// <returns>cDailyQuotes object</returns> public static cDailyQuotes CreateIfRequiredAndGet(string i_sName) { cDailyQuotes oObj = cDailyQuotes.Get_Name(i_sName); if (oObj == null) { oObj = cDailyQuotes.Create(); oObj.sName = i_sName; oObj.Save(); } return(oObj); }