You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the latest source up to and including the fix for issue #99
The problem I have found has an example in the Beef.Demo sample code. In Beef.Demo.xml the Product entity has AutoInferImplements set to true and an "Id" field of type int:
I think something is happening in the xml->yaml->json translation. Maybe do do with here: (ConfigType.Entity, ConfigurationEntity.Entity, "AutoInferImplements", "implementsAutoInfer"),
and/or here:
[JsonProperty("autoInferImplements", DefaultValueHandling = DefaultValueHandling.Ignore)]
[PropertySchema("Entity", Title = "Indicates whether to automatically infer the interface implements for the entity from the properties declared.",
Description = "Will attempt to infer the following: `IGuidIdentifier`, `IIntIdentifier`, `IStringIdentifier`, `IETag` and `IChangeLog`. Defaults to `true`.")]
public bool? ImplementsAutoInfer { get; set; }
Cheers,
Damian.
The text was updated successfully, but these errors were encountered:
* Rename ResultHandling.Stop to ResultHandling.ThrowException - this is the more meaningful name. The host will then decide on how to handle.
* Fix Issue #102
* Update template solution.
Re-publish Beef.Core - merge challenge.
Good afternoon from Hamilton, NZ.
I have the latest source up to and including the fix for issue #99
The problem I have found has an example in the Beef.Demo sample code. In Beef.Demo.xml the Product entity has AutoInferImplements set to true and an "Id" field of type int:
However, in the generated code in Entities\Generated\Product.cs the class definition still expects the implementation of IIntIdentifier:
public partial class Product : EntityBase, IIntIdentifier, IUniqueKey, IEquatable<Product>
Looking in \tools\Beef.CodeGen.Core\Config\Entity\EntityConfig.cs we see:
and then
I think something is happening in the xml->yaml->json translation. Maybe do do with here:
(ConfigType.Entity, ConfigurationEntity.Entity, "AutoInferImplements", "implementsAutoInfer"),
and/or here:
Cheers,
Damian.
The text was updated successfully, but these errors were encountered: