Rhetos.FloydExtensions
6.0.0
Prefix Reserved
dotnet add package Rhetos.FloydExtensions --version 6.0.0
NuGet\Install-Package Rhetos.FloydExtensions -Version 6.0.0
<PackageReference Include="Rhetos.FloydExtensions" Version="6.0.0" />
<PackageVersion Include="Rhetos.FloydExtensions" Version="6.0.0" />
<PackageReference Include="Rhetos.FloydExtensions" />
paket add Rhetos.FloydExtensions --version 6.0.0
#r "nuget: Rhetos.FloydExtensions, 6.0.0"
#:package Rhetos.FloydExtensions@6.0.0
#addin nuget:?package=Rhetos.FloydExtensions&version=6.0.0
#tool nuget:?package=Rhetos.FloydExtensions&version=6.0.0
Rhetos.FloydExtensions
Rhetos.FloydExtensions is a DSL package (a plugin module) for Rhetos development platform. It provides an implementation of generating TypeScript model interfaces from DSL model and provider for structure metadata.
Contents:
See rhetos.org for more information on Rhetos.
Installation and configuration
Installing this package to a Rhetos application:
- Add 'Rhetos.FloydExtensions' NuGet package, available at the NuGet.org on-line gallery.
- Enable CORS requests from the browser for your application. See Enable CORS in ASP.NET Core for more info.
FloydExtensions plugin adds following claims (every user in the system should have permission for this claim):
- ClaimResource: 'Floyd.GetStructureMetadata', ClaimRight: 'Execute'
- ClaimResource: 'Floyd.MyClaims', ClaimRight: 'Read'
- ClaimResource: 'Floyd.GetStorage', ClaimRight: 'Read'
- ClaimResource: 'Floyd.SaveStorageItem', ClaimRight: 'Execute'
Usage
Generated TypeScript model is placed in bin folder in RhetosAssets\rhetos-model.ts
file. Simply include this file in your project. Here is sample of generated TypesScript model:
export module Common {
///
export const PrincipalPermissionKey = 'Common/PrincipalPermission'; //constant that represents a key for retrieving metadata via Common.GetStructureMetadata function
export interface PrincipalPermission {
ID?: string;
PrincipalID: string;
ClaimID: string;
IsAuthorized?: boolean;
}
///
}
In order to retrieve metadata for specified model (DataStructure) call Common.GetStructureMetadata function providing Key parameter. Function returns an object with Value
property which contains JSON metadata like this:
{
key: 'Common/PrincipalPermission',
serviceType: 'Entity',
properties: {
'PrincipalID': {
type: 'Reference',
referenceKey: 'Common/Principal',
required: true
},
'ClaimID': {
type: 'Reference',
referenceKey: 'Common/Claim',
required: true
},
'IsAuthorized': {
type: 'Bool',
}
}
}
How to contribute
Contributions are very welcome. The easiest way is to fork this repo, and then make a pull request from your fork. The first time you make a pull request, you may be asked to sign a Contributor Agreement. For more info see How to Contribute on Rhetos wiki.
Building the source code:
- Note: This package is already available at the NuGet.org online gallery. You don't need to build it from source in order to use it in your application.
- To build the package from source, run
Clean.bat
andBuild.bat
. - For the test script to work, you need to create an empty database and
a settings file
test\TestApp\rhetos-app.local.settings.json
with the database connection string (configuration key "ConnectionStrings:RhetosConnectionString"). - The build output is a NuGet package in the "Install" subfolder.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Rhetos (>= 6.0.0)
- Rhetos.CommonConcepts (>= 6.0.0)
- Rhetos.ComplexEntity (>= 6.0.0)
- Rhetos.Host.AspNet (>= 6.0.0)
- Rhetos.RestGenerator (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.