The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Decimal vs Money

Last post 10-05-2007, 5:34 AM by strattonn. 2 replies.
Sort Posts: Previous Next
  •  10-04-2007, 1:45 PM 5599

    Decimal vs Money

    I am getting an ES object back from an SQL view. Two of the fields are Money fields but when I look at them in the ES object they are decimal and not currency or money. Any reason for this? I would like to check the datatype of each column and apply formatting to a grid but how can I tell the difference between a money column and a column that would be decimal in SQL?
  •  10-04-2007, 4:33 PM 5613 in reply to 5599

    Re: Decimal vs Money

    I'm a little confused, perhaps I'm misunderstanding your question. In C# or VB there aren't "currency" or "money" types, there's only decimal or float. If you need to determine the underlying physical data type of a column though you can do this:

     

    Code:
    Employee emp = new Employee();
    emp.es.Meta.Columns["FirstName"].Type;

     

    Does this help? 


    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  10-05-2007, 5:34 AM 5635 in reply to 5613

    Re: Decimal vs Money

    Oh duh - forget about that, that was a VB 6.0 moment. Embarrassed
View as RSS news feed in XML