Example #1
0
 public VCardAddress()
 {
     _srcRow = new VCardAddressRow();
 }
Example #2
0
 private VCardAddress(VCardAddressRow row)
 {
     _srcRow = row;
 }
Example #3
0
        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;
        }