Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> How to determine an Entity field type?
 

Pages: 1
Bugs & Issues
How to determine an Entity field type?
Page:1/1 

  Print all messages in this thread  
Poster Message
chi
User



Location:

Joined on:
01-Oct-2019 20:50:32
Posted:
3 posts
# Posted on: 12-Dec-2019 15:23:16.  
I am trying to do something like :

if (newEntity.Fields["fieldName"].DataType is decimal)
{ ... }

Is there a way to do this in C#?
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14569 posts
# Posted on: 12-Dec-2019 22:18:46.  
Use type testing directly on the field:
Code:
if (newEntity.FieldName is decimal)
{ ... }


  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.