Here's the situation.. someone please help before my brain explodes...
-
I am using the SelfServicing classes.
-
I have TWO different populated <name>EntityCollections.
-
I use those entity collections to in various parts of the asp.net webform I'm working on.
-
In addition to being able to use those EntityCollections, I need to be able to convert both of the entity collections to DataTables to pass to aspNetEmail.
I know I can use GetMultiAsDataTable, but that requires another trip to the database and it would be too difficult to keep the DataTables and the EntityCollections synchronized.
I simply do not understand why I can't just export the EntityCollection to a datatable.
The alternative is to figure out how to pass an EntityCollection or a TypedView to aspNetEmail.
Here's a bit of documentation from aspNetEmail for the function I need to call.
SendMailMerge will send a mass amount of emails using a DataSet as a source of Mail Merge Data. Under the covers, SendMailMerge( DataSet MailMergeDataSet ) actually takes the first DataTable of the MailMergeDataSet and calls SendMailMerge( DataTable MailMergeData ).
Overload List
SendMailMerge() will send out a list of emails, combining the Subject and Body with data from a DataReader. The SendMailMerge(IDataReader MailMergeReader), actually converts the DataReader to a DataTable and then calls SendMailMerge( DataTable MailMergeData).
public bool SendMailMerge(IDataReader);
SendMailMerge() will send out a list of emails, combining the Subject and Body with data from a DataReader. The SendMailMerge(IDataReader MailMergeReader), actually converts the DataReader to a DataTable and then calls SendMailMerge( DataTable MailMergeData).
public bool SendMailMerge(IDataReader,int,int);
SendMailMerge will send a mass amount of emails using a DataSet as a source of Mail Merge Data. Under the covers, SendMailMerge( DataSet MailMergeDataSet ) actually takes the first DataTable of the MailMergeDataSet and calls SendMailMerge( DataTable MailMergeData ).
public bool SendMailMerge(DataSet);
SendMailMerge will send a mass amount of emails using a DataSet as a source of Mail Merge Data. Under the covers, SendMailMerge( DataSet MailMergeDataSet ) actually takes the first DataTable of the MailMergeDataSet and calls SendMailMerge( DataTable MailMergeData ).
public bool SendMailMerge(DataSet,int,int);
SendMailMerge will send a mass amount of emails using a DataTable as a source of Mail Merge Data.
public bool SendMailMerge(DataTable);
SendMailMerge will send a mass amount of emails using a DataTable as a source of Mail Merge Data.
public bool SendMailMerge(DataTable,int,int);