private static void WriteInsertAddressCollection(TextWriter writer, EmailAddressCollection addresses, string messageID, string className) { for (int i = 0; i < addresses.Count; i++) { WriteInsertAddressSql(writer, addresses[i], messageID, className, i); } }
private static EmailAddressCollection GetExistOrNewAddressColleciton(EmailAddressCollection originalAddresses) { EmailAddressCollection result = originalAddresses; if (result == null) { result = new EmailAddressCollection(); } return(result); }
private static EmailAddressCollection GetAddressesFromTable(DataTable addressTable, string className) { EmailAddressCollection addresses = new EmailAddressCollection(); DataView view = GetAddressViewByClassName(addressTable, className); foreach (DataRowView drv in view) { EmailAddress address = new EmailAddress(); ORMapping.DataRowToObject(drv.Row, address); addresses.Add(address); } return(addresses); }