Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 109,536 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,259 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



float problem between SQL server and C#

 
Reply to this topicStart new topic

float problem between SQL server and C#, i have flaot types in slq server databas ...and when i import them to

nouar
post 4 Aug, 2008 - 10:52 AM
Post #1


New D.I.C Head

*
Joined: 4 Aug, 2008
Posts: 1

CODE
/// <summary>
        /// Gets one row from the dbo.Balance table.
        /// </summary>
        /// <param name="id">An integer to diffrentiate each record in this ///table, i.e it is the primary key of this table.</param>
        /// <returns>Gets an instance of Balance or null.</returns>
        public Balance BalanceGet(int id)
        {
            List<Balance> list = _BalanceGet(id).ToList<Balance>();
            if (list.Count > 0) return list[0];
            return null;
        }
////////////////////////////////////
private ISingleResult<Balance> _BalanceGet(int id)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), id);
            return (result.ReturnValue as ISingleResult<Balance>);
        }
User is offlineProfile CardPM

Go to the top of the page


jayman9
post 4 Aug, 2008 - 11:35 AM
Post #2


Student of Life

Group Icon
Joined: 26 Dec, 2005
Posts: 6,323



Thanked 22 times

Dream Kudos: 500

Expert In: C#, VB.NET, Java

My Contributions


Describe the problem that you are having.

Do not put it in the description field, put it inside the post. The description field only displays a limited number of characters.
User is offlineProfile CardPM

Go to the top of the page

eclipsed4utoo
post 6 Aug, 2008 - 05:35 AM
Post #3


D.I.C Head

**
Joined: 21 Mar, 2008
Posts: 110



Thanked 6 times
My Contributions


though I can't actually tell what your problem is, I would suggest using decimal type instead of the float type.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/7/08 09:47PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month