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

2 lines
221 B
C#

SqlCeEngine engine = new SqlCeEngine("Data Source=Northwind.sdf;Password=<enterStrongPasswordHere>;");
engine.Compact("Data Source=Northwind.sdf;encryption mode=ppc2003 compatibility;Password=<enterStrongPasswordHere>;");