Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to add multiple components (texboxes,compoboxbutton etc...) to a listview Pin
Mycroft Holmes29-Jul-10 20:55
professionalMycroft Holmes29-Jul-10 20:55 
AnswerRe: How to add multiple components (texboxes,compoboxbutton etc...) to a listview Pin
Gonzalo Cao29-Jul-10 23:53
Gonzalo Cao29-Jul-10 23:53 
QuestionToggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Matt U.29-Jul-10 16:53
Matt U.29-Jul-10 16:53 
AnswerRe: Toggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Jimmanuel30-Jul-10 3:31
Jimmanuel30-Jul-10 3:31 
GeneralRe: Toggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Matt U.30-Jul-10 8:42
Matt U.30-Jul-10 8:42 
GeneralRe: Toggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Matt U.30-Jul-10 12:03
Matt U.30-Jul-10 12:03 
GeneralRe: Toggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Jimmanuel31-Jul-10 6:39
Jimmanuel31-Jul-10 6:39 
QuestionNHibernate CreateSqlQuery and addEntity Pin
Matt Cavanagh29-Jul-10 16:22
Matt Cavanagh29-Jul-10 16:22 
This seems like a stupidly simple request to me, but for some reason I cannot get it to work:

The hibernate manual says this:

String sql = "SELECT ID as {c.id}, NAME as {c.name}, " +<br />
       "BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother.*} " +<br />
      "FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID";<br />
    List loggedCats = sess.createSQLQuery(sql)<br />
      .addEntity("cat", Cat.class)<br />
      .addEntity("mother", Cat.class).list()


Now, what I have is basically the same. I am return two of the same type per row. I am doing a select something like this:


SELECT {ctrl1.*}, {ctrl2.*} FROM tableA AS A<br />
                                                LEFT JOIN tableB AS ctrl1 ON (A.controlID = ctrl1.controlID AND ctrl1.controlOptionType = ? AND ctrl1.controlOptionValue = ?)<br />
                                                LEFT JOIN tableB AS ctrl2 ON (A.controlID = ctrl2.controlID AND ctrl2.controlOptionType = ? AND ctrl2.controlOptionValue = ?)


And then I addEntity("ctrl1", typeof(mycontrolclass) and addEntity("ctrl1", typeof(mycontrolclass)


Which seems exactly the same to me as their example. But I get this exception: "Could not execute query" and the inner exception is "Could not find specified column in results". If I copy the sql in the exception(to which it has added "AS ctrl1_1_3_3_" etc) it works fine.

Thanks.
Strive to be humble enough to take advice, and confident enough to do something about it.

QuestionUsing RasGetEntryProperties in .NET CF Pin
notsotragichero29-Jul-10 9:49
notsotragichero29-Jul-10 9:49 
QuestiondatagridView1_CellContentClick Problem Pin
MumbleB29-Jul-10 6:27
MumbleB29-Jul-10 6:27 
AnswerRe: datagridView1_CellContentClick Problem Pin
I Believe In GOD29-Jul-10 6:56
I Believe In GOD29-Jul-10 6:56 
GeneralRe: datagridView1_CellContentClick Problem Pin
MumbleB29-Jul-10 7:05
MumbleB29-Jul-10 7:05 
AnswerRe: datagridView1_CellContentClick Problem Pin
Mycroft Holmes29-Jul-10 17:21
professionalMycroft Holmes29-Jul-10 17:21 
GeneralRe: datagridView1_CellContentClick Problem Pin
MumbleB4-Aug-10 2:39
MumbleB4-Aug-10 2:39 
QuestionProblem with pc to pc Voice chat on LAN using h323 protocol. Pin
88Rocker29-Jul-10 5:46
88Rocker29-Jul-10 5:46 
AnswerReason for my vote of 1 Pin
OriginalGriff29-Jul-10 6:04
mveOriginalGriff29-Jul-10 6:04 
QuestionGive .NET Compiled Assemblly DLL StrongName Pin
I Believe In GOD29-Jul-10 5:33
I Believe In GOD29-Jul-10 5:33 
AnswerRe: Give .NET Compiled Assemblly DLL StrongName Pin
Ennis Ray Lynch, Jr.29-Jul-10 5:35
Ennis Ray Lynch, Jr.29-Jul-10 5:35 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
I Believe In GOD29-Jul-10 5:54
I Believe In GOD29-Jul-10 5:54 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName PinPopular
Nagy Vilmos29-Jul-10 5:59
professionalNagy Vilmos29-Jul-10 5:59 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
I Believe In GOD29-Jul-10 6:02
I Believe In GOD29-Jul-10 6:02 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
Eddy Vluggen29-Jul-10 6:25
professionalEddy Vluggen29-Jul-10 6:25 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName [modified] Pin
I Believe In GOD29-Jul-10 6:38
I Believe In GOD29-Jul-10 6:38 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
Eddy Vluggen29-Jul-10 7:15
professionalEddy Vluggen29-Jul-10 7:15 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
I Believe In GOD29-Jul-10 7:34
I Believe In GOD29-Jul-10 7:34 

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.