This commit is contained in:
@@ -96,7 +96,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private void DataPortal_Fetch()
|
||||
{
|
||||
this.RaiseListChangedEvents = false;
|
||||
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] ConnectionInfoList.DataPortal_Fetch", GetHashCode());
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ConnectionInfoList.DataPortal_Fetch", GetHashCode());
|
||||
try
|
||||
{
|
||||
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
|
||||
@@ -116,7 +116,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if(_MyLog.IsErrorEnabled)_MyLog.Error("ConnectionInfoList.DataPortal_Fetch", ex);
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("ConnectionInfoList.DataPortal_Fetch", ex);
|
||||
throw new DbCslaException("ConnectionInfoList.DataPortal_Fetch", ex);
|
||||
}
|
||||
this.RaiseListChangedEvents = true;
|
||||
@@ -177,8 +177,8 @@ namespace VEPROMS.CSLA.Library
|
||||
/// </summary>
|
||||
public partial class ConnectionInfoListPropertyDescriptor : vlnListPropertyDescriptor
|
||||
{
|
||||
private ConnectionInfo Item { get { return (ConnectionInfo) _Item;} }
|
||||
public ConnectionInfoListPropertyDescriptor(ConnectionInfoList collection, int index):base(collection, index){;}
|
||||
private ConnectionInfo Item { get { return (ConnectionInfo)_Item; } }
|
||||
public ConnectionInfoListPropertyDescriptor(ConnectionInfoList collection, int index) : base(collection, index) { ;}
|
||||
}
|
||||
#endregion
|
||||
#region Converter
|
||||
@@ -189,7 +189,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (destType == typeof(string) && value is ConnectionInfoList)
|
||||
{
|
||||
// Return department and department role separated by comma.
|
||||
return ((ConnectionInfoList) value).Items.Count.ToString() + " Connections";
|
||||
return ((ConnectionInfoList)value).Items.Count.ToString() + " Connections";
|
||||
}
|
||||
return base.ConvertTo(context, culture, value, destType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user