Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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;
        }