Ejemplo n.º 1
0
        public bool UpdateSystemString(SystemString str)
        {
            if (str == null)
            {
                return(false);
            }
            int rowsAffected = ExecuteNonQueryCommand("SystemString_UpdateSystemString",
                                                      CreateParameter("RecordNumber", SqlDbType.Int, str.RecordNumber),
                                                      CreateParameter("SystemStringID", SqlDbType.Int, str.SystemStringID),
                                                      CreateParameter("enUS", SqlDbType.VarChar, str.enUS),
                                                      CreateParameter("arSA", SqlDbType.VarChar, str.arSA),
                                                      CreateParameter("frFR", SqlDbType.VarChar, str.frFR));

            return(rowsAffected > 0);
        }
Ejemplo n.º 2
0
        public SystemString CreateSystemStringFromDataRow(DataRow dr)
        {
            if (dr == null)
            {
                return(null);
            }

            var s = new SystemString
            {
                SystemStringID = GetInt(dr, "SystemStringID"),
                RecordNumber   = GetInt(dr, "RecordNumber"),
                enUS           = GetString(dr, "en-US"),
                arSA           = GetString(dr, "ar-SA"),
                frFR           = GetString(dr, "fr-FR")
            };

            return(s);
        }