XmlMappingSource

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
oribolzi
Posts: 7
Joined: Sun 26 Feb 2006 21:54
Location: Milano, Italy

XmlMappingSource

Post by oribolzi » Wed 30 Sep 2009 16:22

how about XmlMappingSource support in oracle?
i tried and got a 'cannot instantiate abstract class' error.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by 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.

Post Reply