Skip to content

Entity Framework components

solutionName: "Axellon.SimpleSql"
dataApi:
    entityGroups:
      - group: default
        enableHistory: false
        useGroupFolder: true
        readComponents:
          - type: EFSqlComponent
        writeComponents:
          - type: ValidationComponent
          - type: EFSqlComponent
        endpoints:
          - type: WebApiEndpoint

entities:
- entity: Asset
  pluralName: Assets
  properties:
  - Id:
      type: uuid
      description: The identifier for the asset
  - Name:
      type: string
      maxLength: 100
      description: The name of the asset
  - Quantity:
      type: integer
      description: The asset quantity

- entity: Commodity
  pluralName: Commodities
  autogeneratedKey: true
  properties:
  - Id:
      type: string
      description: The identifier for the commodity
  - Name:
      type: string
      maxLength: 100
      description: The name of the commodity
  - Quantity:
      type: integer
      description: The commodity quantity
Back to top