Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
Questionunable to connect to any of the specified mysql Pin
Jassim Rahma21-Jun-14 22:15
Jassim Rahma21-Jun-14 22:15 
AnswerRe: unable to connect to any of the specified mysql Pin
Pete O'Hanlon21-Jun-14 23:19
mvePete O'Hanlon21-Jun-14 23:19 
GeneralRe: unable to connect to any of the specified mysql Pin
Jassim Rahma21-Jun-14 23:41
Jassim Rahma21-Jun-14 23:41 
AnswerRe: unable to connect to any of the specified mysql Pin
Bernhard Hiller22-Jun-14 21:55
Bernhard Hiller22-Jun-14 21:55 
GeneralRe: unable to connect to any of the specified mysql Pin
Jassim Rahma22-Jun-14 22:00
Jassim Rahma22-Jun-14 22:00 
AnswerRe: unable to connect to any of the specified mysql Pin
Eddy Vluggen23-Jun-14 0:25
professionalEddy Vluggen23-Jun-14 0:25 
QuestionC# creating my own class that acts like a string Pin
hpjchobbes21-Jun-14 5:23
hpjchobbes21-Jun-14 5:23 
GeneralRe: C# creating my own class that acts like a string Pin
harold aptroot21-Jun-14 5:35
harold aptroot21-Jun-14 5:35 
GeneralRe: C# creating my own class that acts like a string Pin
hpjchobbes21-Jun-14 17:20
hpjchobbes21-Jun-14 17:20 
GeneralRe: C# creating my own class that acts like a string Pin
harold aptroot21-Jun-14 20:25
harold aptroot21-Jun-14 20:25 
GeneralRe: C# creating my own class that acts like a string Pin
OriginalGriff21-Jun-14 20:29
mveOriginalGriff21-Jun-14 20:29 
GeneralRe: C# creating my own class that acts like a string Pin
hpjchobbes22-Jun-14 7:24
hpjchobbes22-Jun-14 7:24 
GeneralRe: C# creating my own class that acts like a string Pin
harold aptroot22-Jun-14 7:29
harold aptroot22-Jun-14 7:29 
GeneralRe: C# creating my own class that acts like a string Pin
hpjchobbes22-Jun-14 9:52
hpjchobbes22-Jun-14 9:52 
AnswerRe: C# creating my own class that acts like a string Pin
BobJanova23-Jun-14 1:26
BobJanova23-Jun-14 1:26 
Questionplease recommend a book for beginner Pin
solo920-Jun-14 13:10
solo920-Jun-14 13:10 
AnswerRe: please recommend a book for beginner Pin
Peter Leow20-Jun-14 16:12
professionalPeter Leow20-Jun-14 16:12 
GeneralRe: please recommend a book for beginner Pin
solo920-Jun-14 16:23
solo920-Jun-14 16:23 
GeneralRe: please recommend a book for beginner Pin
Peter Leow20-Jun-14 16:36
professionalPeter Leow20-Jun-14 16:36 
AnswerRe: please recommend a book for beginner Pin
OriginalGriff20-Jun-14 19:03
mveOriginalGriff20-Jun-14 19:03 
GeneralRe: please recommend a book for beginner Pin
solo921-Jun-14 1:44
solo921-Jun-14 1:44 
GeneralRe: please recommend a book for beginner Pin
harold aptroot21-Jun-14 2:06
harold aptroot21-Jun-14 2:06 
GeneralRe: please recommend a book for beginner Pin
OriginalGriff21-Jun-14 2:26
mveOriginalGriff21-Jun-14 2:26 
GeneralRe: please recommend a book for beginner Pin
solo921-Jun-14 11:29
solo921-Jun-14 11:29 
QuestionProblem with get() method! Pin
LAPEC20-Jun-14 7:07
LAPEC20-Jun-14 7:07 
Hello everyone

I'm trying to solve this problem but i can't get it. Maybe someone can help me solve this problem please...

When I compile the error says:

Quote:
Error 'System.Collections.Generic.Dictionary<string,nhibernate.isessionfactory>' does not contain a definition for 'get' and no extension method 'get' accepting a first argument of type 'System.Collections.Generic.Dictionary<string,nhibernate.isessionfactory>' could be found (are you missing a using directive or an assembly reference?)


C#
protected static ISessionFactory getSessionFactory(string configFile) 
        {
		    if (null == configFile) 
            {
			    if (sessionFactory == null) 
                {
                    throw new Exception("The session factory has not been initialized (or an error occurred during initialization)");
                }
			    else
                {
                    return sessionFactory;
                }
		    }
		    else 
            {
			    if (sessionFactoryMap == null)
                {
                    throw new Exception("The session factory for '" + configFile + "' has not been initialized (or an error occurred during initialization)");
                }
			    else 
                {
				    ISessionFactory sf = (ISessionFactory) sessionFactoryMap.get(configFile);
				    if (null == sf) 
                    {
                        throw new Exception("The session factory for '" + configFile + "' has not been initialized (or an error occured during initialization)");
                    }
				    else
                    {
                        return sf;
                    }
			    }
		    }
	    }


Thanks in advance

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.