修复bug和新增部分功能

This commit is contained in:
GG Z
2024-10-08 16:21:39 +08:00
parent 082b781808
commit b6647218be
44 changed files with 1709 additions and 1390 deletions

View File

@@ -111,8 +111,8 @@ public static class ExtensibleStorageAssist
throw new ArgumentNullException(nameof(fieldName));
}
//if (!typeof(T).IsPrimitive)
// throw new NotSupportedException(nameof(T));
//if (!typeof(Command).IsPrimitive)
// throw new NotSupportedException(nameof(Command));
var result = schemaBuilder.AddArrayField(fieldName, typeof(T));
if (description == string.Empty)
@@ -144,8 +144,8 @@ public static class ExtensibleStorageAssist
throw new ArgumentNullException(nameof(fieldName));
}
//if (!typeof(T).IsPrimitive)
// throw new NotSupportedException(nameof(T));
//if (!typeof(Command).IsPrimitive)
// throw new NotSupportedException(nameof(Command));
var result = schemaBuilder.AddSimpleField(fieldName, typeof(T));
//result.SetUnitType(unitType);
@@ -340,7 +340,7 @@ public static class ExtensibleStorageAssist
// Entity ent = e.GetEntity(schema);
// foreach (var field in fields)
// {
// var f = ent.Get<T>(field);
// var f = ent.Get<Command>(field);
// storages.Add(f);
// }
// }