Ejemplo n.º 1
0
        public List <ProfileDetail> Load(ISqlConnectionInfo connection, MobiChat.Data.Language language)
        {
            SqlQueryParameters parameters = new SqlQueryParameters();

            parameters.Where = "[pd].LanguageID = @LanguageID";
            parameters.Arguments.Add("LanguageID", language.ID);
            return(this.LoadMany(connection, parameters));
        }
Ejemplo n.º 2
0
        public ProfileDetail Load(ISqlConnectionInfo connection, Profile profile, MobiChat.Data.Language language)
        {
            SqlQueryParameters parameters = new SqlQueryParameters();

            parameters.Where = "[pd].LanguageID = @LanguageID AND [pd].ProfileID = @ProfileID";
            parameters.Arguments.Add("LanguageID", language.ID);
            parameters.Arguments.Add("ProfileID", profile.ID);
            return(this.Load(connection, parameters));
        }
Ejemplo n.º 3
0
        public ProfileDetail Load(IConnectionInfo connection, Profile profile, MobiChat.Data.Language language)
        {
            ISqlConnectionInfo sqlConnection = connection as ISqlConnectionInfo;

            if (sqlConnection != null)
            {
                return(this.Load(sqlConnection, profile, language));
            }
            using (sqlConnection = new SqlConnectionInfo(connection, this.Type))
                return(this.Load(sqlConnection, profile, language));
        }
Ejemplo n.º 4
0
 public ProfileDetail Load(Profile profile, MobiChat.Data.Language language)
 {
     using (SqlConnectionInfo connection = new SqlConnectionInfo(this.Type))
         return(this.Load(connection, profile, language));
 }