Created
October 21, 2010 20:34
-
-
Save srkirkland/639293 to your computer and use it in GitHub Desktop.
This file contains 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
public IList<SearchStudent> SearchStudentByLogin(string login, string termCode) | |
{ | |
var searchQuery = NHibernateSessionManager.Instance.GetSession().GetNamedQuery("SearchStudentByLogin"); | |
searchQuery.SetString("login", login); | |
searchQuery.SetString("term", termCode); | |
return searchQuery.List<SearchStudent>(); | |
} |
This file contains 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
<sql-query name="SearchStudentByLogin"> | |
<return class="SearchStudent"></return> | |
EXEC usp_SearchStudentByLogin :login, :term | |
</sql-query> | |
---- | |
Inside the mapping file, after the SearchStudent class declaration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment