Install the linq2db.SqlCe nuget. Open LinqToDB.Templates\CopyMe.SqlCe.tt.txt and follow the instructions inside the file.