Skip to content

Instantly share code, notes, and snippets.

@pachecoder
Last active December 29, 2015 08:09
Show Gist options
  • Save pachecoder/7641060 to your computer and use it in GitHub Desktop.
Save pachecoder/7641060 to your computer and use it in GitHub Desktop.
Parse Type in DbType
public DbType GetDbType(Type type)
{
DbType dbType = (DbType)Enum.Parse(typeof(DbType), type.Name);
return dbType;
}
@pachecoder
Copy link
Author

Parse Type into a DbType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment