Browse Source

Added Object Extensions empty document

pull/3401/head
Halil İbrahim Kalkan 6 years ago
parent
commit
9f3d7ab0b7
  1. 9
      docs/en/Customizing-Application-Modules-Extending-Entities.md
  2. 3
      docs/en/Object-Extensions.md

9
docs/en/Customizing-Application-Modules-Extending-Entities.md

@ -40,10 +40,11 @@ To overcome the difficulties described above, ABP Framework entity extension sys
Assume that you want to add a `SocialSecurityNumber` to the `IdentityUser` entity of the [Identity Module](Modules/Identity.md). You can use the `ObjectExtensionManager`:
````csharp
ObjectExtensionManager.Instance.MapEfCoreProperty<IdentityUser, string>(
"SocialSecurityNumber",
b => { b.HasMaxLength(32); }
);
ObjectExtensionManager.Instance
.MapEfCoreProperty<IdentityUser, string>(
"SocialSecurityNumber",
b => { b.HasMaxLength(32); }
);
````
* You provide the `IdentityUser` as the entity name, `string` as the type of the new property, `SocialSecurityNumber` as the property name (also, the field name in the database table).

3
docs/en/Object-Extensions.md

@ -0,0 +1,3 @@
# Object Extensions
TODO
Loading…
Cancel
Save