Use more .NET Attribute for Configuration

Thread is closed for posting
2 posts, 0 answers
  1. Fakhru
    Fakhru avatar
    37 posts
    Member since:
    Oct 2007

    Posted 30 May 2009 Link to this post

    I'm currently using OpenAccess Express and get it work manualy (I use Visual Studio Express).
    As far I can see, OpenAccess use so little attribute on Persistance class.

    It would be nice, if some configuration like FieldLength or Nullable can be change via attribute like:

    public class A
         [FieldLength=100, Nullable(true)]
         string name;

  2. Zoran
    Zoran avatar
    534 posts

    Posted 01 Jun 2009 Link to this post

    Hi Fakhru,

    In order to keep the .NET code cleaner, OpenAccess keeps these field-specific settings in the app.config.  Here is a sample entry in XML:
    <field name="firstName" null-value="exception"
       <extension key="db-column"
          <extension key="db-length" value="100" /> 

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top