Skip to content

Methods and classes for defining, accessing, and using metadata for presentation and search.

License

Notifications You must be signed in to change notification settings

hoeyi/DataModel

Repository files navigation

DataModel

This library contains classes and methods for applying metadata to objects, accessing metadata for presentation in user interfaces or for generating search expressions.

Be sure to read the guidelines for contributing to this project.

Building Project

By default, the project $(BuildNumber) property is set to zero. Uncomment the line Extensions.Configuration.csproj to allow auto-assignment of the build number. Once the build is complete, revert the change to the $(BuilderNumber) property assignment.

Contents

DataModel

IModelMetadataService

IModelMetadataService provides helper methods for accessing model metadata. This interface supports string localization using DisplayAttribute or similar. (source)


DataModel.Annotations

Provides attributes used for describing objects and properties, as well as helper methods for working with System.ComponentModel.DataAnnotations.

Examples

NounAttribute

NounAttribute describes the singular and plural forms and articles of a noun. (source)

SearchableAttribute

SearchableAttribute signals that a member can be passed to Expressions.IExpressionBuilder. (source)


DataModel.Expressions

Supports generation of query expressions based on attributes applied to class properties.

IExpressionBuilder

IExpressionBuilder provides generic methods used for building query expressions for properties decorated with SearchableAttribute and DisplayAttribute. (source)

IQueryParameter

IQueryParameter represents part of a search expression used to construct a valid left-hand side of an equation. (source)

ISearchableMemberMetadata

ISearchableMemberMetadata represents a class member for which query expressions can be built. (source)

About

Methods and classes for defining, accessing, and using metadata for presentation and search.

Topics

Resources

License

Stars

Watchers

Forks

Languages