Hi Team
I have below requirement.
'
There are 3 list with different class type.
Example:
List<Customer> lst1=new LIst<Customer>();
List<CustomerOrder> lst2=new List<CustomerOredr>();
List<CustomerTransaction> lst=new List<CustomerTransaction>();
i want to add three list into one list like ,List<List<T>> lstMul=New List<List<T>>();
lstMul.add(lst1);
lstMul.add(lst2);
lstMul.add(lst3);
Above lstMul will be send to the entity framework BulkInsertOrUpdate method
context.AddUpdateEntityData(lstMul)
ENtityframework method
**public int AddUpdateEntityData(List<Dynamic> lstDynamic)**
{
_context.BulkInsertOrUpdate(lstDynamic.Item1); ----Inserting Customer List
_context.BulkInsertOrUpdate(lstDynamic.Item2);----inserting CustomerOrder List
_context.BulkInsertOrUpdate(lstDynamic.Item3);-----inserting CustomerTransaction List
_context.savechanges();
return 1;
}
Please suggest how we can achieve above reqirement.