Comments (3)
Dbhelpers is strong.But there is a problem, byte [] type errors.
I have modified the below a place.
Add else if.
case TypeCode.Object:
if (type == typeof(Guid))
return ToGuidInternal(value, null);
else if (type == typeof(byte[]))
return value;
break;
I wonder if you how to deal with this problem?
from dbhelpers.
Good call, I forgot this one. I just created a ticket (#12) and should release in the next version.
from dbhelpers.
Adding enum support has proven to be quite complicated. While it is possible, it requires too many checks to convert the value correctly, adding a lot of overhead. It also causes an extra check on the To(Type) which I'm not willing to add because of enums.
For now it is better to cast the value from an integer to the enum type.
from dbhelpers.
Related Issues (20)
- Improve DataReaderConverter to accept more types HOT 1
- ArgumentException: invalid -1 for maxrecords HOT 1
- Connection automatically closed after query HOT 1
- DBConvert.ToStringInternal should not be public
- Add support to DateTimeOffset to DBConvert
- Add support for Async calls
- Improve conversion experience HOT 1
- Add byte[] support to DBConvert
- Add missing overloads for ExecuteXxx(string, DbConnection)
- ExecuteList<long> doesn't load long values HOT 1
- Use OpenAsync instead of Open for async methods
- Stop using Task.Run
- How to use by execute store procedure HOT 1
- Samples
- Does not work at all. Connection not initialized HOT 6
- Question List parameters support? HOT 1
- Help to make an Insert with parameterized command HOT 1
- How about Add、Delete and Update methods ? HOT 1
- Transactions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbhelpers.