Last active
December 29, 2015 08:09
-
-
Save pachecoder/7641060 to your computer and use it in GitHub Desktop.
Parse Type in DbType
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public DbType GetDbType(Type type) | |
{ | |
DbType dbType = (DbType)Enum.Parse(typeof(DbType), type.Name); | |
return dbType; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Parse Type into a DbType