/// <summary> /// Lists the specified V card id. /// </summary> /// <param name="VCardId">The V card id.</param> /// <returns></returns> public static VCardTelephone[] List(int VCardId) { ArrayList retVal = new ArrayList(); foreach (VCardTelephoneRow item in VCardTelephoneRow.List(VCardId)) { retVal.Add(new VCardTelephone(item)); } return((VCardTelephone[])retVal.ToArray(typeof(VCardTelephone))); }
/// <summary> /// Creates the specified V card id. /// </summary> /// <param name="VCardId">The V card id.</param> /// <param name="Type">The type.</param> /// <param name="Number">The number.</param> /// <returns></returns> public static int Create(int VCardId, VCardTelephoneTypes Type, string Number) { VCardTelephoneRow row = new VCardTelephoneRow(); row.VCardId = VCardId; row.TelephoneTypeId = (int)Type; row.Number = Number; row.Update(); return(row.PrimaryKeyId); }
/// <summary> /// Deletes the specified V card telephone id. /// </summary> /// <param name="VCardTelephoneId">The V card telephone id.</param> public static void Delete(int VCardTelephoneId) { VCardTelephoneRow.Delete(VCardTelephoneId); }
/// <summary> /// Initializes a new instance of the <see cref="VCardTelephone"/> class. /// </summary> /// <param name="row">The row.</param> private VCardTelephone(VCardTelephoneRow row) { _srcRow = row; }
public VCardTelephone() { _srcRow = new VCardTelephoneRow(); }