In the static constructor you can only initialize static properties. As I see in the first code snippet, the oBind property is not static.
So depends on what you want to achieve there are two options:
- If this oBind property should be the same for all instances of EntitiesModel you should declare it as static and initialize it in the static constructor.
- If the property will be different for different instances of EntitiesModel, you should define a new non static constructor in the partial class where this property is initialized.
I hope that helps.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map