Click here to Skip to main content
15,922,419 members
Home / Discussions / C#
   

C#

 
QuestionHow to create lucene.net index in database Pin
Tridip Bhattacharjee14-Jul-14 3:59
professionalTridip Bhattacharjee14-Jul-14 3:59 
AnswerRe: How to create lucene.net index in database Pin
Eddy Vluggen14-Jul-14 5:29
professionalEddy Vluggen14-Jul-14 5:29 
Questionhelp C# AND SQL Server Pin
ozanadiaa14-Jul-14 3:39
ozanadiaa14-Jul-14 3:39 
AnswerRe: help C# AND SQL Server Pin
Pete O'Hanlon14-Jul-14 3:42
mvePete O'Hanlon14-Jul-14 3:42 
AnswerRe: help C# AND SQL Server Pin
Dilan Shaminda14-Jul-14 7:07
professionalDilan Shaminda14-Jul-14 7:07 
QuestionRe: help C# AND SQL Server Pin
ZurdoDev14-Jul-14 8:55
professionalZurdoDev14-Jul-14 8:55 
AnswerRe: help C# AND SQL Server Pin
PIEBALDconsult14-Jul-14 9:16
mvePIEBALDconsult14-Jul-14 9:16 
AnswerRe: help C# AND SQL Server Pin
Dave Kreskowiak14-Jul-14 10:35
mveDave Kreskowiak14-Jul-14 10:35 
QuestionRegarding locking trick at the time of indexing data Lucene.net Pin
Tridip Bhattacharjee14-Jul-14 3:31
professionalTridip Bhattacharjee14-Jul-14 3:31 
AnswerRe: Regarding locking trick at the time of indexing data Lucene.net Pin
Pete O'Hanlon14-Jul-14 3:44
mvePete O'Hanlon14-Jul-14 3:44 
QuestionGuidance for indexing data by Lucene.net Pin
Tridip Bhattacharjee14-Jul-14 1:42
professionalTridip Bhattacharjee14-Jul-14 1:42 
AnswerRe: Guidance for indexing data by Lucene.net Pin
Pete O'Hanlon14-Jul-14 2:05
mvePete O'Hanlon14-Jul-14 2:05 
QuestionCould someone answer me this Pin
Member 1094467914-Jul-14 0:25
Member 1094467914-Jul-14 0:25 
AnswerRe: Could someone answer me this Pin
Pete O'Hanlon14-Jul-14 1:40
mvePete O'Hanlon14-Jul-14 1:40 
QuestionSend command To Printe Pin
Zeyad Jalil12-Jul-14 21:15
professionalZeyad Jalil12-Jul-14 21:15 
SuggestionRe: Send command To Printe Pin
Richard MacCutchan12-Jul-14 21:33
mveRichard MacCutchan12-Jul-14 21:33 
GeneralRe: Send command To Printe Pin
Zeyad Jalil12-Jul-14 22:09
professionalZeyad Jalil12-Jul-14 22:09 
GeneralRe: Send command To Printe Pin
Richard MacCutchan12-Jul-14 22:20
mveRichard MacCutchan12-Jul-14 22:20 
GeneralRe: Send command To Printe Pin
Dave Kreskowiak13-Jul-14 4:40
mveDave Kreskowiak13-Jul-14 4:40 
QuestionAdd other component in c# 2008 Pin
KaKoten12-Jul-14 15:30
KaKoten12-Jul-14 15:30 
AnswerRe: Add other component in c# 2008 Pin
Richard MacCutchan12-Jul-14 21:28
mveRichard MacCutchan12-Jul-14 21:28 
QuestionMutliple ResultSet from Stored Procedure using EF 5.0 Pin
meeram3912-Jul-14 12:57
professionalmeeram3912-Jul-14 12:57 
AnswerRe: Mutliple ResultSet from Stored Procedure using EF 5.0 Pin
Dave Kreskowiak13-Jul-14 4:42
mveDave Kreskowiak13-Jul-14 4:42 
GeneralRe: Mutliple ResultSet from Stored Procedure using EF 5.0 Pin
meeram3913-Jul-14 8:39
professionalmeeram3913-Jul-14 8:39 
QuestionTranslate method in Entity framework not found Pin
meeram3912-Jul-14 7:53
professionalmeeram3912-Jul-14 7:53 
I have a stored procedure that returns multiple result set. I tried to use Translate method to handle this, however, I am not able to call this method, as it is giving error such a method doesn't exist. I am using .Net Framework 4.5 and Entity Framework 5.0. Following is what I have tried.
C#
using (var db = new MyEntities())
            {
                using (IDbConnection oaConnection = db.Database.Connection)
                {
                    // 3. Create a new instance of the OACommand class.
                    using (IDbCommand oaCommand = oaConnection.CreateCommand())
                    {
                        // 4. Set the CommandType property.
                        oaCommand.CommandType = CommandType.StoredProcedure;

                        // 5. Set the CommandText property.
                        oaCommand.CommandText = "gsp_get_emp_details";
                        oaCommand.Parameters.Add(empInput.EmployeeId);
                        oaCommand.Parameters.Add(empInput.UserId);
                        oaCommand.Parameters.Add(empInput.RoleList);

                        // 6. Execute the command and materialize the car entities
                        using (IDataReader dataReader = oaCommand.ExecuteReader())
                        {
                            EmployeeData empData = db.Translate<EmployeeData>(dataReader as DbDataReader);
}
}
}
}


I tried using by calling
using System.Data.Objects;
, however it is giving compile error on db.Translate. It is giving the message that "project does not contain a definition for Translate...". May I know what's wrong with the above code? Thanks in advance for any help.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.