Using the Data Access Application Block in Smart Device Apps


I am writing a Smart Device App and trying to use the Data Access Application Block (Microsoft.ApplicationBlocks.Data.dll) version2 in the data layer. I have succesfully use the dll in normal windows programs without any problems. However when i add my Data layer project to the Smart client project, i receive the "TypeLoadException" exception.

Is the Data Access Application Block not supported in the .NET compact framework?

[446 byte] By [jbatty] at [2008-1-12]
# 1
I believe the Data Access Appliaction Block from Microsoft's patterns and practices won't work for the .NET Compact Framework because it uses functionality that is only available in the full .NET framework.

However, there is a ported version available here: http://www.businessanyplace.net/?p=daabcf
The functionality might be limited though, but it's worth a try.

You'll also need SQL Server CE.

Good luck!

Jan-KristianMarkiewicz at 2007-8-21 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 2
Take a look at the recently released application blocks from OpenNETCF which were released in collaboration with the patterns & practices team at Microsoft.
http://www.opennetcf.org/appblocks

Peter

PeterFoot at 2007-8-21 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...