Created
May 16, 2011 03:59
-
-
Save danesparza/973919 to your computer and use it in GitHub Desktop.
Using SQL tinyint columns in C#
This file contains hidden or 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
DataSet ds = GetDataSetFromStoredProc("stored_proc_name", new SqlParameter("@parameter_name", value_id)); | |
var retItems = from dstable in ds.Tables[0].AsEnumerable() | |
select new ClassThing() | |
{ | |
PrimaryKeyId = dstable.Field<int>("some_column_name") | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment