AspNetCore.Docs/aspnet/web-pages/readme/beta3/samples/sample11.cs

2 lines
160 B
C#

SqlCeEngine engine = new SqlCeEngine("Data Source=Northwind.sdf;encryption mode=platform default;Password=<enterStrongPasswordHere>;");
engine.CreateDatabase();