diff --git a/XCode/DataAccessLayer/DbPackage.cs b/XCode/DataAccessLayer/DbPackage.cs
index 00797ee2f..d21b05aa6 100644
--- a/XCode/DataAccessLayer/DbPackage.cs
+++ b/XCode/DataAccessLayer/DbPackage.cs
@@ -341,6 +341,7 @@ public virtual Int32 Restore(Stream stream, IDataTable table)
// 二进制读写器
var bn = new Binary
{
+ FullTime = true,
EncodeInt = true,
Stream = stream,
};
@@ -666,6 +667,7 @@ public class WriteFileActor : Actor
// 二进制读写器
_Binary = new Binary
{
+ FullTime = true,
EncodeInt = true,
Stream = Stream,
};
diff --git a/XCode/Entity/Entity.cs b/XCode/Entity/Entity.cs
index 527a43647..497d8ab00 100644
--- a/XCode/Entity/Entity.cs
+++ b/XCode/Entity/Entity.cs
@@ -1872,7 +1872,7 @@ public override Object? this[String name]
/// 是否序列化扩展属性
protected virtual Boolean OnRead(Stream stream, Object? context, Boolean extend)
{
- if (context is not Binary bn) bn = new Binary { Stream = stream, EncodeInt = true };
+ if (context is not Binary bn) bn = new Binary { Stream = stream, EncodeInt = true, FullTime = true };
var fs = extend ? Meta.AllFields : Meta.Fields;
foreach (var fi in fs)
@@ -1890,7 +1890,7 @@ protected virtual Boolean OnRead(Stream stream, Object? context, Boolean extend)
/// 是否序列化扩展属性
protected virtual Boolean OnWrite(Stream stream, Object? context, Boolean extend)
{
- if (context is not Binary bn) bn = new Binary { Stream = stream, EncodeInt = true };
+ if (context is not Binary bn) bn = new Binary { Stream = stream, EncodeInt = true, FullTime = true };
var fs = extend ? Meta.AllFields : Meta.Fields;
foreach (var fi in fs)