修复bug和新增部分功能
This commit is contained in:
@@ -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);
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user