From 89c494549ac9619ef80d331921850cde5e663a42 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Mon, 26 Dec 2016 12:19:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=8F=8F=E8=BF=B0=E4=B8=BA=E7=A9=BA=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=8A=9B=E5=87=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.DataAccess/GroupHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bootstrap.DataAccess/GroupHelper.cs b/Bootstrap.DataAccess/GroupHelper.cs index 985ba9b2..62aea9c0 100644 --- a/Bootstrap.DataAccess/GroupHelper.cs +++ b/Bootstrap.DataAccess/GroupHelper.cs @@ -44,7 +44,7 @@ namespace Bootstrap.DataAccess { ID = (int)reader[0], GroupName = (string)reader[1], - Description = LgbConvert.ReadValue(reader[2], string.Empty) + Description = reader.IsDBNull(2) ? string.Empty : (string)reader[2] }); } } @@ -134,7 +134,7 @@ namespace Bootstrap.DataAccess { ID = (int)reader[0], GroupName = (string)reader[1], - Description = (string)reader[2], + Description = reader.IsDBNull(2) ? string.Empty : (string)reader[2], Checked = (string)reader[3] }); } @@ -216,7 +216,7 @@ namespace Bootstrap.DataAccess { ID = (int)reader[0], GroupName = (string)reader[1], - Description = (string)reader[2], + Description = reader.IsDBNull(2) ? string.Empty : (string)reader[2], Checked = (string)reader[3] }); }