Change Manager

This commit is contained in:
Rich
2011-08-01 20:16:23 +00:00
parent a38f0b0909
commit 14e3e15537
9 changed files with 1726 additions and 2 deletions

View File

@@ -1287,6 +1287,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
//Volian.Base.Library.vlnStackTrace.ShowStackLocal("ContentID={0}", _ContentID.ToString());
cm.CommandText = "updateContent";
// All Fields including Calculated Fields
cm.Parameters.AddWithValue("@ContentID", _ContentID);

View File

@@ -27,11 +27,20 @@ namespace VEPROMS.CSLA.Library
[TypeConverter(typeof(ContentInfoConverter))]
public partial class ContentInfo : ReadOnlyBase<ContentInfo>, IDisposable
{
public static event ContentInfoEvent InfoChanged;
private void OnInfoChanged(ContentInfo contentInfo)
{
if (InfoChanged != null)
InfoChanged(this);
}
public event ContentInfoEvent Changed;
private void OnChange(ContentInfo contentInfo)
{
if (Changed != null)
Changed(this);
{
Changed(this);
OnInfoChanged(this);
}
}
private void OnChange()
{