afterCreateEntityInterface( context: dotnetTypes.DsgContext, eventParams: dotnet.CreateEntityInterfaceParams, files: FileMap<Interface> ): Promise<FileMap<Interface>> { const { entity } = eventParams; const interfaceFile = files.get(`Interfaces/I${entity.name}.cs`); if (interfaceFile) { interfaceFile.code.addMethod( CsharpSupport.method({ name: "Validate", returnType: CsharpSupport.Types.boolean(), }) ); } return files; }
Creates an interface for entities in the .NET application.
CreateEntityInterface
Was this page helpful?