Data connection initialize method calls GetTypes for the assembly. Therefore the assembly should not contain any classes that require a higher trust level. My suggestion is to keep all dbclasses in a separate assembly. This way you can ensure that the assembly does not contain any restricted classes.
the Telerik team