草庐IT

c# - 以编程方式创建 SQLCE 数据库

这个问题在这里已经有了答案:CreateSQLServerCEdatabasefileprogrammatically(2个答案)关闭9年前。[已编辑-有答案]以下是我以编程方式创建SQLCE数据库的代码:/*getthePath*/vardirectoryName=System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);varfileName=System.IO.Path.Combine(directoryName,"Foo2Database.sdf");/*checkifexists*/if(Fil

c# - 以编程方式创建 SQLCE 数据库

这个问题在这里已经有了答案:CreateSQLServerCEdatabasefileprogrammatically(2个答案)关闭9年前。[已编辑-有答案]以下是我以编程方式创建SQLCE数据库的代码:/*getthePath*/vardirectoryName=System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);varfileName=System.IO.Path.Combine(directoryName,"Foo2Database.sdf");/*checkifexists*/if(Fil