This commit is contained in:
@@ -42,7 +42,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("TransitionID",true);
|
||||
CanReadProperty("TransitionID", true);
|
||||
if (_MyTransition != null) _TransitionID = _MyTransition.TransitionID;
|
||||
return _TransitionID;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyTransition",true);
|
||||
CanReadProperty("MyTransition", true);
|
||||
if (_MyTransition == null && _TransitionID != 0) _MyTransition = Transition.Get(_TransitionID);
|
||||
return _MyTransition;
|
||||
}
|
||||
@@ -65,7 +65,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("FromID",true);
|
||||
CanReadProperty("FromID", true);
|
||||
if (_MyContent != null) _FromID = _MyContent.ContentID;
|
||||
return _FromID;
|
||||
}
|
||||
@@ -76,14 +76,14 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyContent",true);
|
||||
CanReadProperty("MyContent", true);
|
||||
if (_MyContent == null && _FromID != 0) _MyContent = Content.Get(_FromID);
|
||||
return _MyContent;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("MyContent",true);
|
||||
CanWriteProperty("MyContent", true);
|
||||
if (_MyContent != value)
|
||||
{
|
||||
_MyContent = value;
|
||||
@@ -100,7 +100,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("ToID",true);
|
||||
CanReadProperty("ToID", true);
|
||||
if (_MyItemToID != null) _ToID = _MyItemToID.ItemID;
|
||||
return _ToID;
|
||||
}
|
||||
@@ -111,14 +111,14 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyItemToID",true);
|
||||
CanReadProperty("MyItemToID", true);
|
||||
if (_MyItemToID == null && _ToID != 0) _MyItemToID = Item.Get(_ToID);
|
||||
return _MyItemToID;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("MyItemToID",true);
|
||||
CanWriteProperty("MyItemToID", true);
|
||||
if (_MyItemToID != value)
|
||||
{
|
||||
_MyItemToID = value;
|
||||
@@ -132,13 +132,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("TranType",true);
|
||||
CanReadProperty("TranType", true);
|
||||
return _TranType;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("TranType",true);
|
||||
CanWriteProperty("TranType", true);
|
||||
if (_TranType != value)
|
||||
{
|
||||
_TranType = value;
|
||||
@@ -152,13 +152,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Config",true);
|
||||
CanReadProperty("Config", true);
|
||||
return _Config;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("Config",true);
|
||||
CanWriteProperty("Config", true);
|
||||
if (value == null) value = string.Empty;
|
||||
if (_Config != value)
|
||||
{
|
||||
@@ -173,13 +173,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("DTS",true);
|
||||
CanReadProperty("DTS", true);
|
||||
return _DTS;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("DTS",true);
|
||||
CanWriteProperty("DTS", true);
|
||||
if (_DTS != value)
|
||||
{
|
||||
_DTS = value;
|
||||
@@ -193,13 +193,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("UserID",true);
|
||||
CanReadProperty("UserID", true);
|
||||
return _UserID;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("UserID",true);
|
||||
CanWriteProperty("UserID", true);
|
||||
if (value == null) value = string.Empty;
|
||||
if (_UserID != value)
|
||||
{
|
||||
@@ -215,7 +215,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Content_Number",true);
|
||||
CanReadProperty("Content_Number", true);
|
||||
return _Content_Number;
|
||||
}
|
||||
}
|
||||
@@ -225,7 +225,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Content_Text",true);
|
||||
CanReadProperty("Content_Text", true);
|
||||
return _Content_Text;
|
||||
}
|
||||
}
|
||||
@@ -238,7 +238,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Content_Type",true);
|
||||
CanReadProperty("Content_Type", true);
|
||||
return _Content_Type;
|
||||
}
|
||||
}
|
||||
@@ -248,7 +248,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Content_FormatID",true);
|
||||
CanReadProperty("Content_FormatID", true);
|
||||
return _Content_FormatID;
|
||||
}
|
||||
}
|
||||
@@ -258,7 +258,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Content_Config",true);
|
||||
CanReadProperty("Content_Config", true);
|
||||
return _Content_Config;
|
||||
}
|
||||
}
|
||||
@@ -268,7 +268,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Content_DTS",true);
|
||||
CanReadProperty("Content_DTS", true);
|
||||
return _Content_DTS;
|
||||
}
|
||||
}
|
||||
@@ -278,7 +278,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Content_UserID",true);
|
||||
CanReadProperty("Content_UserID", true);
|
||||
return _Content_UserID;
|
||||
}
|
||||
}
|
||||
@@ -311,23 +311,23 @@ namespace VEPROMS.CSLA.Library
|
||||
#endregion
|
||||
#region ValidationRules
|
||||
[NonSerialized]
|
||||
private bool _CheckingBrokenRules=false;
|
||||
private bool _CheckingBrokenRules = false;
|
||||
public IVEHasBrokenRules HasBrokenRules
|
||||
{
|
||||
get
|
||||
{
|
||||
if(_CheckingBrokenRules)return null;
|
||||
if (_CheckingBrokenRules) return null;
|
||||
if (BrokenRulesCollection.Count > 0) return this;
|
||||
try
|
||||
{
|
||||
_CheckingBrokenRules=true;
|
||||
IVEHasBrokenRules hasBrokenRules = null;
|
||||
if (_MyContent != null && (hasBrokenRules = _MyContent.HasBrokenRules) != null) return hasBrokenRules;
|
||||
return hasBrokenRules;
|
||||
_CheckingBrokenRules = true;
|
||||
IVEHasBrokenRules hasBrokenRules = null;
|
||||
if (_MyContent != null && (hasBrokenRules = _MyContent.HasBrokenRules) != null) return hasBrokenRules;
|
||||
return hasBrokenRules;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_CheckingBrokenRules=false;
|
||||
_CheckingBrokenRules = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -446,8 +446,8 @@ namespace VEPROMS.CSLA.Library
|
||||
_TranType = _ItemTransition_RangeIDExtension.DefaultTranType;
|
||||
_DTS = _ItemTransition_RangeIDExtension.DefaultDTS;
|
||||
_UserID = _ItemTransition_RangeIDExtension.DefaultUserID;
|
||||
_MyContent = myContent;
|
||||
_MyItemToID = myItemToID;
|
||||
_MyContent = myContent;
|
||||
_MyItemToID = myItemToID;
|
||||
ValidationRules.CheckRules();
|
||||
}
|
||||
internal ItemTransition_RangeID(SafeDataReader dr)
|
||||
@@ -459,7 +459,7 @@ namespace VEPROMS.CSLA.Library
|
||||
#region Data Access Portal
|
||||
private void Fetch(SafeDataReader dr)
|
||||
{
|
||||
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] ItemTransition_RangeID.FetchDR", GetHashCode());
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemTransition_RangeID.FetchDR", GetHashCode());
|
||||
try
|
||||
{
|
||||
_TransitionID = dr.GetInt32("TransitionID");
|
||||
@@ -480,7 +480,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex) // FKItem Fetch
|
||||
{
|
||||
if(_MyLog.IsErrorEnabled)_MyLog.Error("ItemTransition_RangeID.FetchDR", ex);
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemTransition_RangeID.FetchDR", ex);
|
||||
throw new DbCslaException("ItemTransition_RangeID.Fetch", ex);
|
||||
}
|
||||
MarkOld();
|
||||
|
Reference in New Issue
Block a user