Exemple #1
0
        public SqlCEDDLTest()
        {
            const string connectionStringName = "SqlCELinq";

            //DbConfiguration.InitializeDLinq<System.Data.Linq.Binary>();

            if (!DbConfiguration.Items.TryGetValue(connectionStringName, out dbConfiguration))
            {
                dbConfiguration = DbConfiguration.ConfigureSqlCe35("Northwind.sdf")
                                  //dbConfiguration = DbConfiguration.Configure(connectionStringName)
                                  .SetSqlLogger(() => new SqlLog(Console.Out))
                                  .AddFromAssemblyOf <ELinq.DDLTest.Models.Customers>(p => p.HasAttribute <System.Data.Linq.Mapping.TableAttribute>(false));
            }
        }