Thanks!
I had to take a closer look at what is going on.
I first got a simple Entity to work:
DataAccessAdapter adapter = new DataAccessAdapter();
InterzoicWidgetDalEntity entWidgetDal = new InterzoicWidgetDalEntity(ItemId);
adapter.FetchEntity(entWidgetDal);
string sTemp = entWidgetDal.Content;
if (entWidgetDal != null)
{
txtContent.Text = entWidgetDal.Content;
ctlAudit.CreatedByUser = entWidgetDal.CreatedByUser.ToString();
ctlAudit.CreatedDate = entWidgetDal.CreatedDate.ToString();
}
Then I went back for a TypedList. I'll get my naming conventions down better next time!
I'm still having problems.
IzmwidgetDalUsersTypedList tlWidgetDal = new IzmwidgetDalUsersTypedList();
IPredicateExpression filter = new PredicateExpression();
filter.Add( InterzoicWidgetDalFields.ItemId == ItemId);
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.FetchTypedList(tlWidgetDal, filter);
}
string sTemp = tlWidgetDal.FieldName;
Problems:
1 - for both IPredicateExpression and new PredicateExpression I get this error:
The type 'SD.LLBLGen.Pro.ORMSupportClasses.PredicateExpression' exists in both
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webroot\dd395b12\588677bc\assembly\dl3\38799bc5\00a8f800_845dc601\SD.LLBLGen.Pro.ORMSupportClasses.NET20.DLL
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webroot\dd395b12\588677bc\assembly\dl3\7b831190\00c702fb_835dc601\SD.LLBLGen.Pro.ORMSupportClasses.CF11.DLL
I've tried deleting the temp directory, but the errors return.
2 - While writing the code tlWidgetDal. (note the . ) does not return IntelliSense for any of the field names from the 2 tables I used to create the typedlist.
3 - From my initial posting on this thread - what using namespaces do I need to include?
Thank you very much. We're making progress. This is really a great product.
One more question if I may. What percentage of people do you think are using the SelfServicing vs. Adapter? What's your preference?
Thanks,
Wylie