This commit is contained in:
@@ -99,8 +99,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
IVEHasBrokenRules hasBrokenRules=null;
|
||||
foreach(ContentPart contentPart in this)
|
||||
IVEHasBrokenRules hasBrokenRules = null;
|
||||
foreach (ContentPart contentPart in this)
|
||||
if ((hasBrokenRules = contentPart.HasBrokenRules) != null) return hasBrokenRules;
|
||||
return hasBrokenRules;
|
||||
}
|
||||
@@ -109,8 +109,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
IVEHasBrokenRules hasBrokenRules = HasBrokenRules;
|
||||
return (hasBrokenRules != null ? hasBrokenRules.BrokenRules : null);
|
||||
IVEHasBrokenRules hasBrokenRules = HasBrokenRules;
|
||||
return (hasBrokenRules != null ? hasBrokenRules.BrokenRules : null);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -170,7 +170,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private void DataPortal_Fetch(ContentIDCriteria criteria)
|
||||
{
|
||||
this.RaiseListChangedEvents = false;
|
||||
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] ContentParts.DataPortal_FetchContentID", GetHashCode());
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ContentParts.DataPortal_FetchContentID", GetHashCode());
|
||||
try
|
||||
{
|
||||
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
|
||||
@@ -189,7 +189,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if(_MyLog.IsErrorEnabled)_MyLog.Error("ContentParts.DataPortal_FetchContentID", ex);
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("ContentParts.DataPortal_FetchContentID", ex);
|
||||
throw new DbCslaException("ContentParts.DataPortal_Fetch", ex);
|
||||
}
|
||||
this.RaiseListChangedEvents = true;
|
||||
@@ -274,8 +274,8 @@ namespace VEPROMS.CSLA.Library
|
||||
/// </summary>
|
||||
public partial class ContentPartsPropertyDescriptor : vlnListPropertyDescriptor
|
||||
{
|
||||
private ContentPart Item { get { return (ContentPart) _Item;} }
|
||||
public ContentPartsPropertyDescriptor(ContentParts collection, int index):base(collection, index){;}
|
||||
private ContentPart Item { get { return (ContentPart)_Item; } }
|
||||
public ContentPartsPropertyDescriptor(ContentParts collection, int index) : base(collection, index) { ;}
|
||||
}
|
||||
#endregion
|
||||
#region Converter
|
||||
@@ -286,7 +286,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (destType == typeof(string) && value is ContentParts)
|
||||
{
|
||||
// Return department and department role separated by comma.
|
||||
return ((ContentParts) value).Items.Count.ToString() + " Parts";
|
||||
return ((ContentParts)value).Items.Count.ToString() + " Parts";
|
||||
}
|
||||
return base.ConvertTo(context, culture, value, destType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user