Page 1 of 1

XmlMappingSource

Posted: Wed 30 Sep 2009 16:22
by oribolzi
how about XmlMappingSource support in oracle?
i tried and got a 'cannot instantiate abstract class' error.

Posted: Fri 02 Oct 2009 13:03
by AndreyR
Try the following code:

Code: Select all

Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("WindowsFormsApplication1.TESTDataContextMappings.xml");
        System.Data.Linq.Mapping.MappingSource mappingSource = Devart.Data.Linq.Mapping.XmlMappingSource.FromStream(stream);
        TESTDataContext.TESTDataContext dataContext1 =
                    new TESTDataContext.TESTDataContext("User Id=crm_demo;Password=tiger;Server=ora;", mappingSource);
It is supported in the latest dotConnect for Oracle.