Transaction using AdapterModel

Posts   
 
    
hommels
User
Posts: 23
Joined: 01-Jul-2005
# Posted on: 18-Jul-2005 16:07:03   

How do you change these lines of code from self servicing to adapter model

SetupCollection s = new SetupCollection(); s.GetMulti(null); // read in all values (there will be only one)

I think that the above 2 line should be this EntityCollection s = new EntityCollection(); adapter.FetchEntityCollection(s, null);

What about these 2 lines, what do you have to cast it to get this information SupportName = s[0].TechnicalSupportDisplayName; SupportEmail = s[0].TechnicalSupportEmailAddress;

And this line fails as well Transaction trans = new Transaction(System.Data.IsolationLevel.ReadCommitted, "EmailUser");

It says it is unaccesible due to its protection level

hommels
User
Posts: 23
Joined: 01-Jul-2005
# Posted on: 18-Jul-2005 16:41:10   

I got it.

Thanks