E
enantiomer
I am using the DbProviderFactory in my services project (a class
library) to do all of my database interactions. I use this because
people may want to use a variety of different databases. I have been
using this for my windows forms project and it seems to be working
fine.
I am now looking at creating a device application that would ideally
use my services project to interact with what would probably be a sql
server 2005 mobile database. It seems as though the DbProviderFactory
is not actually included in the compact framework. This seems strange
because in the System.Data.Common namespace, almost all of the other
database agnostic classes still exist. Since this is the case, this
means that I won't be able to make calls to my services (as a project
reference), since every database interaction utilizes the
DbProviderFactory??? Is this right? I tried to do this and visual
studio 2005 wouldnt even let me add the reference since it said that
the reference isn't a device project...
If this is the case, then what should I do in order to still utilize
those services that I wrote to interact with the database? I suppose I
could use web services to get and insert my strongly typed business
objects to and from the database, but this will be slower and i can't
rely on my mobile device always being connected.
Any advise on this issue? Why is it that the DbProviderFactory isn't
included in the compact framework? Thanks,
Jonathan
library) to do all of my database interactions. I use this because
people may want to use a variety of different databases. I have been
using this for my windows forms project and it seems to be working
fine.
I am now looking at creating a device application that would ideally
use my services project to interact with what would probably be a sql
server 2005 mobile database. It seems as though the DbProviderFactory
is not actually included in the compact framework. This seems strange
because in the System.Data.Common namespace, almost all of the other
database agnostic classes still exist. Since this is the case, this
means that I won't be able to make calls to my services (as a project
reference), since every database interaction utilizes the
DbProviderFactory??? Is this right? I tried to do this and visual
studio 2005 wouldnt even let me add the reference since it said that
the reference isn't a device project...
If this is the case, then what should I do in order to still utilize
those services that I wrote to interact with the database? I suppose I
could use web services to get and insert my strongly typed business
objects to and from the database, but this will be slower and i can't
rely on my mobile device always being connected.
Any advise on this issue? Why is it that the DbProviderFactory isn't
included in the compact framework? Thanks,
Jonathan