Print Page | Close Window

Automatically translate database values to Int32

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=201
Printed Date: 02-Jun-2025 at 8:21am


Topic: Automatically translate database values to Int32
Posted By: Customer
Subject: Automatically translate database values to Int32
Date Posted: 12-Jul-2007 at 3:30pm
In our DB we have field of Type Number(5,0) it is automatically tranclated to System.Decimal. But I will it to rather by System.Int32. I want the DataModeller always, automatically take Int32 and not Decimal. I don't want everytime change this maually. Can I do it?



Replies:
Posted By: IdeaBlade
Date Posted: 12-Jul-2007 at 3:31pm

DevForce has the concept that every business object has a data type for the representation in the database and a different (and not necessarily the same) representation in the application.  This allows you to have an application that keeps the same data type in the application and yet supports different database formats (e.g., INT32 in SQL Server, and DECIMAL in Oracle).

 

Please read the section in the Developer's Guide on Data Transforms.




Print Page | Close Window