I'm currently using SqlMetal to generate a data context for a SQL Server Compact Edition 3.5 database.

This database will be used in a Windows Phone 7 application, and will only be read from. For this reason I'd like to skip the logic to track property changes (implementing INotifyPropertyChanging and INotifyPropertyChanged), since the database won't be changed by the user/system.

Is there any way I can tell SqlMetal to exclude this extra logic?

Alternatively, short of creating the context and classes myself, are there any relatively simple changes I can make to improve performance if I left the generated file (mostly) as-is?

有帮助吗?

解决方案

The code that invokes these methods will never be called, if you only read from the database, so there is no performance penalty

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top