Secondly, you should not be changing the SF source code, which it sounds like you are doing. You should create your DbDataSourceItem in one of your assemblied, not the SF base assembly. You NEVER want to change the SF source if you plan to ever receive another update. This is why you want to create your own base assembly which references the SF Base and then either inherit and override logic or create your SF inherited classes there so that when you get a new version of SF it doesn't wipe out your code and require you to go back and keep putting things in.
The provided SQLDataSourceItem will not work due to differences in features support between SQL Serevr and SQL compact. Basic stuff like schema designation, use of IDENTITY_SCOPE are not supported and must be removed from the SQL commands. I went down the road of creating a SQLCEDataSourceIitem that uses the System.Data.SqlServerCE namespace and have had good results so far. I have basic databinding and UPDATES working using the following in appmain.
MicroFour.StrataFrame.Data.DataBasics.DataSources.Add(
Again, if someone out there gets either the BOMapper or SF in general to work with less effort using OLEDB, I would appreciate a heads up. If anyone is interested in the SQLCEDataSourceItem, let me know. It will only have the "_NONSP" items done, but it will work.
Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=C:\Users\michthom\Documents\Visual Studio 2008\Projects\premframev2\premframev2\premdatav2.sdf
i think i don't understand the framework enough to do what trent is suggesting. I would love if someone had a sql compact code example i could customize for my file. I do really need to use the desktop edition so i am not sure what to do
Thank you for posting this. On a PC that has a good install ( ) I got OLEDB working.
1) Created OLEDBSOURCE class
2) use #1 in appmain:
MicroFour.StrataFrame.Data.DataBasics.DataSources.Add(New OLEDBSOURCE("", "Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=C:\ioivb.sdf"))
3) Change my fills to use OLEDBCommand instead of SqlCommand
Just curious... what are your reasons for not using SQL Server Express?