Postby oribolzi » Wed 30 Sep 2009 16:22

how about XmlMappingSource support in oracle?
i tried and got a 'cannot instantiate abstract class' error.
Posts: 7
Joined: Sun 26 Feb 2006 21:54
Location: Milano, Italy

Postby AndreyR » Fri 02 Oct 2009 13:03

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.
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Return to LinqConnect (LINQ to SQL support)