Hello all,
I'm using an MSAccess provider with no UDTs but I'm getting the following exception when I try to load my collection.
Message - UdtTypeName property must be set for UDT parameters.
StackTrace - at EntitySpaces.Interfaces.esDataProvider.esLoadDataTable(esDataRequest request, esProviderSignature sig)
at EntitySpaces.Interfaces.esDynamicQuery.Load()
at MyNamespace.esMyEntity.LoadByPrimaryKeyDynamic(String myKey)
at MyNamespace.esMyEntity.LoadByPrimaryKey(String myKey)
at MyNamespace.MyClass.MyMethod()
I've included my calling code below, as well as a snippet from my metadata and my database fields. (Entity names have been changed for security.) I've looked for this message on google and only got 4 hits. I also did not find this issue addressed in the entity spaces forums. There were a couple of issues that produced the same error message, but they did not appear to be applicable in this scenario. The only thing I can think of is if there are issues with mapping an Access OLE Object to a C# System.Byte[]. (Entity Spaces version 2007.1.1210.0.)
Any insight would be appreciated.
Cheers,
Nathan
Code:
MyEntityCollection MyEntityCollection = new MyEntityCollection();
MyEntityCollection.Query.Where(MyEntityCollection.Query.Or(MyEntityCollection.Query.MyStatusString.Equal(MyStatusClass.String1),
MyEntityCollection.Query.MyStatusString.Equal(MyStatusClass.String2)), MyEntityCollection.Query.MyBoolean.Equal(false));
MyEntityCollection.Query.Load();
Code:
esProviderSpecificMetadata meta = new esProviderSpecificMetadata();
meta.AddTypeMap("my_key", new esTypeMap("Text", "System.String"));
meta.AddTypeMap("my_data", new esTypeMap("OLE Object", "System.Byte[]"));
meta.AddTypeMap("my_status", new esTypeMap("Text", "System.String"));
meta.AddTypeMap("my_dt", new esTypeMap("DateTime", "System.DateTime"));
meta.AddTypeMap("my_other_key", new esTypeMap("Text", "System.String"));
meta.AddTypeMap("my_boolean", new esTypeMap("Yes/No", "System.Boolean"));
MS Access database table MyEntity
my_key Text
my_data OLE Object
my_status Text
my_dt Date/Time
my_other_key Text
my_boolean Yes/No