LINQ COlumnAtrributes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wildThought

    #1

    LINQ COlumnAtrributes

    Does anyone know how to inspect the column attributes such as name and
    DBType at run time assuming one is starting with a SQLMetal generated
    table?

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: LINQ COlumnAtrribute s

    wildThought,

    Well, if you have the type that has the ColumnAttribute attached to it,
    you can easily cycle through the fields/properties using reflection, and
    look for the ColumnAttribute attached to it. Once you have the instance,
    you can get the information about the DBType from the properties on the
    ColumnAttribute .


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "wildThough t" <andyblum@gmail .comwrote in message
    news:1189544128 .164802.204250@ v23g2000prn.goo glegroups.com.. .
    Does anyone know how to inspect the column attributes such as name and
    DBType at run time assuming one is starting with a SQLMetal generated
    table?
    >

    Comment

    Working...