mirror of https://github.com/abpframework/abp.git
6 changed files with 66 additions and 61 deletions
@ -0,0 +1,3 @@ |
|||||
|
# Module Entity Extensions |
||||
|
|
||||
|
See https://docs.abp.io/en/commercial/latest/guides/module-entity-extensions (it will be moved here soon). |
||||
@ -1,32 +0,0 @@ |
|||||
using Volo.Abp.Identity; |
|
||||
using Volo.Abp.ObjectExtending; |
|
||||
using Volo.Abp.Threading; |
|
||||
|
|
||||
namespace MyCompanyName.MyProjectName.ObjectExtending |
|
||||
{ |
|
||||
public static class MyProjectNameDomainObjectExtensions |
|
||||
{ |
|
||||
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner(); |
|
||||
|
|
||||
public static void Configure() |
|
||||
{ |
|
||||
OneTimeRunner.Run(() => |
|
||||
{ |
|
||||
/* You can configure extension properties to entities or other object types |
|
||||
* defined in the depended modules. |
|
||||
* |
|
||||
* If you are using EF Core and want to map the entity extension properties to new |
|
||||
* table fields in the database, then configure them in the MyProjectNameEfCoreEntityExtensionMappings |
|
||||
* |
|
||||
* Example: |
|
||||
* |
|
||||
* ObjectExtensionManager.Instance |
|
||||
* .AddOrUpdateProperty<IdentityRole, string>("Title"); |
|
||||
* |
|
||||
* See the documentation for more: |
|
||||
* https://docs.abp.io/en/abp/latest/Object-Extensions
|
|
||||
*/ |
|
||||
}); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue