LinqMetadata - ConnectionString

Posts   
 
    
flopdix
User
Posts: 2
Joined: 07-Feb-2011
# Posted on: 07-Feb-2011 23:40:40   

Hello, I have generated the llblgen code and using LinqMetaData object to query the entities. But i want to pass a connectionString (dynamic) to LinqMetaData.

I am not sure how to achieve this. This object has some overloads which speaks about SD.LLBLGen.Pro.ORMSupportClasses.ITransaction.

I also have seen that the use of Transaction object offers to input the connectionString.

Please help me with some sample code if you can, it will help. I am kind of lost at the moment.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-Feb-2011 01:08:18   

What LLBLGen version are you using? Adapter or SelfServicing?

David Elizondo | LLBLGen Support Team
flopdix
User
Posts: 2
Joined: 07-Feb-2011
# Posted on: 08-Feb-2011 01:20:50   

I am not pretty sure, but i guess it should be self serving. I think if i understand correctly should i be using adapter?

any code samples?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 08-Feb-2011 08:34:23   

Yes Adapter is better for your case. WHere you can pass the conection string the DataAccessAdapter CTor.