Updated Generated Code to Use IDs rather than Objects for internal Updates
This commit is contained in:
@@ -1027,13 +1027,13 @@ namespace VEPROMS.CSLA.Library
|
||||
if (IsNew)
|
||||
_LastChanged = ROImage.Add(cn, ref _ImageID, _MyRODb, _FileName, _Content, _Config, _DTS, _UserID);
|
||||
else
|
||||
_LastChanged = ROImage.Update(cn, ref _ImageID, _MyRODb, _FileName, _Content, _Config, _DTS, _UserID, ref _LastChanged);
|
||||
_LastChanged = ROImage.Update(cn, ref _ImageID, _RODbID, _FileName, _Content, _Config, _DTS, _UserID, ref _LastChanged);
|
||||
MarkOld();
|
||||
}
|
||||
if (_ROImageFigures != null) _ROImageFigures.Update(this);
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
public static byte[] Update(SqlConnection cn, ref int imageID, RODb myRODb, string fileName, byte[] content, string config, DateTime dts, string userID, ref byte[] lastChanged)
|
||||
public static byte[] Update(SqlConnection cn, ref int imageID, int rODbID, string fileName, byte[] content, string config, DateTime dts, string userID, ref byte[] lastChanged)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROImage.Update", 0);
|
||||
try
|
||||
@@ -1044,7 +1044,7 @@ namespace VEPROMS.CSLA.Library
|
||||
cm.CommandText = "updateROImage";
|
||||
// Input All Fields - Except Calculated Columns
|
||||
cm.Parameters.AddWithValue("@ImageID", imageID);
|
||||
cm.Parameters.AddWithValue("@RODbID", myRODb.RODbID);
|
||||
cm.Parameters.AddWithValue("@RODbID", rODbID);
|
||||
cm.Parameters.AddWithValue("@FileName", fileName);
|
||||
cm.Parameters.AddWithValue("@Content", content);
|
||||
cm.Parameters.AddWithValue("@Config", config);
|
||||
|
Reference in New Issue
Block a user