Beispiel #1
0
        //===============================================

        public BinaryData()
        {
            __privateValue = GetDefaultRawData();
        }
Beispiel #2
0
		//===============================================

        public BinaryData()
        {
			__privateValue = GetDefaultRawData();
        }
Beispiel #3
0
 public void UpdateBinaryProperty(int binaryDataId, BinaryDataValue value)
 {
     WriteLog(MethodInfo.GetCurrentMethod(), binaryDataId, value);
     _writer.UpdateBinaryProperty(binaryDataId, value);
 }
Beispiel #4
0
		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);
		}
Beispiel #5
0
 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);
 }