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

2 lines
180 B
C#

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