//=============================================== public BinaryData() { __privateValue = GetDefaultRawData(); }
//=============================================== public BinaryData() { __privateValue = GetDefaultRawData(); }
public void UpdateBinaryProperty(int binaryDataId, BinaryDataValue value) { WriteLog(MethodInfo.GetCurrentMethod(), binaryDataId, value); _writer.UpdateBinaryProperty(binaryDataId, value); }
private void Modifying() { //if (OwnerNode != null) // OwnerNode.BackwardCompatibilityPropertySet(PropertyType.Name, this); if (IsModified) return; //-- Clone var orig = (BinaryDataValue)OwnerNode.Data.GetDynamicRawData(PropertyType); BinaryDataValue data; if (orig == null) { data = GetDefaultRawData(); } else { data = new BinaryDataValue { Id = orig.Id, ContentType = orig.ContentType, FileName = orig.FileName, Size = orig.Size, Checksum = orig.Checksum, Stream = orig.Stream }; } OwnerNode.MakePrivateData(); OwnerNode.Data.SetDynamicRawData(PropertyType, data, false); }
public int InsertBinaryProperty(int versionId, int propertyTypeId, BinaryDataValue value, bool isNewNode) { WriteLog(MethodInfo.GetCurrentMethod(), versionId, propertyTypeId, value, isNewNode); return _writer.InsertBinaryProperty(versionId, propertyTypeId, value, isNewNode); }