idatareader
Adding a secondary data source to an ASP.NET data repeater
I have an ASP.NET da开发者_开发问答ta repeater.This is currently set to a data source obtained from an SQL query, as follows:[详细]
2023-04-12 12:51 分类:问答Convert C# lambda function to VB.net
I have this function that maps a IDataReader to a class. It is obviously written in C#. My co-worker wants to use the same method in his code, but he is writingin VB.net. Basically I am having difficu[详细]
2023-04-11 02:09 分类:问答moq returning dataReader
I\'m having a strange experience with moq/mocking. Im trying to mock the data going into a method so that i dont have to have adatabase availableat test time.[详细]
2023-04-09 08:24 分类:问答GetSchemaTable Columns Missing?
I am using this code to get data from a dataReader into a DataTable which ca开发者_Python百科n then be serialised.[详细]
2023-04-09 08:21 分类:问答Error when binding repeater with IDataReader after converting asp.net 3.5 to 4.0
I am trying to migrate asp.net 3.5 application to asp.net 4.0 version. asp.net 3.5 is working without any issues, after migrating to asp.net 4.0 getting the below error[详细]
2023-04-05 03:30 分类:问答AutoMapper with a list data from IDataReader
using (IDataReader dr = DatabaseContext.ExecuteReader(command)) { if (dr.Read()) { AutoMapper.Mapper.CreateMap<IDataReader, ProductModel>();[详细]
2023-03-24 00:13 分类:问答sql stored procedure - Having problems retreiving multiple rows of data with Idatareader
I have a stored procedure that does this: SELECT TOP 4 FROM dbo.test (table contains 5 rows) My c# code is:[详细]
2023-03-12 05:32 分类:问答c# IDataReader SqlDataReader difference
Can someone tell me the difference between these two pieces of code? Why use IDataReader? using (IDataReader reader = cmd.ExecuteReader())[详细]
2023-03-08 17:37 分类:问答C# Reader Disposal Review
I am using the Enteprise Library to query my database. When I run a query, I am relying on stored procedures. Currently, I am using code that looks like the following:[详细]
2023-03-01 08:32 分类:问答How to convert/cast SqlDataReader to IDatareader
What is the easiest way to cast a SqlDataReader to IDatareader. Or is it eas开发者_开发知识库ier / possible to convert a List<> object to a IDataReader[详细]
2023-01-26 02:59 分类:问答