Csla SafeDataReader doesn't have GetSingle()

Csla SafeDataReader doesn't have GetSingle()

Old forum URL: forums.lhotka.net/forums/t/4567.aspx


glenntoy posted on Thursday, March 27, 2008

I'm just wondering why does SafeDataReader doesn't have GetSingle()? Any reasons?
I know this can be achive by using the GetValue() function and cast it to Single, is this is best approach or there are any ways of doing it?

Thanks in advance.

William replied on Thursday, March 27, 2008

I think the "Single" you are referring here comes from VB. In C#, it is called "float".

SafeDataReader implements GetFloat(), which returns the "Single" (or "float") value. GetFloat() comes from IDataReader, which SafeDataReader implements.

 

Copyright (c) Marimer LLC