public static VCardAddress[] List(int VCardId) { ArrayList retVal = new ArrayList(); foreach (VCardAddressRow item in VCardAddressRow.List(VCardId)) { retVal.Add(new VCardAddress(item)); } return((VCardAddress[])retVal.ToArray(typeof(VCardAddress))); }
public static int Create(int VCardId, VCardAddressTypes type, string Country, string PostalCode, string Region, string Locality, string Street, string ExtraAddress, bool IsPrefered) { VCardAddressRow row = new VCardAddressRow(); row.VCardId = VCardId; row.VCardAddressTypeId = (int)type; row.IsPrefered = IsPrefered; row.Country = Country; row.PostalCode = PostalCode; row.Region = Region; row.Locality = Locality; row.Street = Street; row.ExtraAddress = ExtraAddress; row.Update(); return(row.PrimaryKeyId); }
public static void Delete(int VCardAdressId) { VCardAddressRow.Delete(VCardAdressId); }
private VCardAddress(VCardAddressRow row) { _srcRow = row; }
public VCardAddress() { _srcRow = new VCardAddressRow(); }