 | BusinessRulesExtensionsAddBusinessRuleTModel(IServiceProvider, Type) Method |
Adds a new business rule service for the specified model to the application service otherwise adds it to the chain
Namespace: SanteDB.Core.ServicesAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxpublic static Object AddBusinessRule<TModel>(
this IServiceProvider me,
Type breType
)
where TModel : IdentifiedData
<ExtensionAttribute>
Public Shared Function AddBusinessRule(Of TModel As IdentifiedData) (
me As IServiceProvider,
breType As Type
) As Object
public:
[ExtensionAttribute]
generic<typename TModel>
where TModel : IdentifiedData
static Object^ AddBusinessRule(
IServiceProvider^ me,
Type^ breType
)
[<ExtensionAttribute>]
static member AddBusinessRule :
me : IServiceProvider *
breType : Type -> Object when 'TModel : IdentifiedDataParameters
- me IServiceProvider
- The application service to be added to
- breType Type
- The instance of the BRE
Type Parameters
- TModel
- The type of model to bind to
Return Value
Object[Missing <returns> documentation for "M:SanteDB.Core.Services.BusinessRulesExtensions.AddBusinessRule``1(System.IServiceProvider,System.Type)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IServiceProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also