Show / Hide Table of Contents

Class SeltzrOptionsBuilderBase

Base class for SeltzrOptionsBuilder<TModel, TUser> with useful static methods

Inheritance
Object
SeltzrOptionsBuilderBase
SeltzrOptionsBuilder<TModel, TUser>
Namespace: Seltzr.Options.Builder
Assembly: Seltzr.dll
Syntax
C#
public class SeltzrOptionsBuilderBase

Methods

| Improve this Doc View Source

CamelCase(PropertyInfo)

Gets a camelCased version of the C# property name

C#
protected static string CamelCase(PropertyInfo property)
Parameters
propertyPropertyInfo

The property to get the camelCased name of

Returns

String

The camelCased name of property

| Improve this Doc View Source

CamelCase(String)

camelCases a string

C#
protected static string CamelCase(string str)
Parameters
strString

The string to camelCase

Returns

String

The string in camelCase format

| Improve this Doc View Source

CamelCase<TParent, TProperty>(Expression<Func<TParent, TProperty>>)

Gets a camelCased version of the C# property name

C#
protected static string CamelCase<TParent, TProperty>(Expression<Func<TParent, TProperty>> property)
Parameters
propertyExpression<Func<TParent, TProperty>>

The property to get the camelCased name of

Returns

String

The camelCased name of property

Type Parameters
TParent

The type to which the property belongs

TProperty

The type of the property

| Improve this Doc View Source

ExtractProperty<TProperty, TModel>(Expression<Func<TModel, TProperty>>)

Extracts a property from an expression

C#
protected static PropertyInfo ExtractProperty<TProperty, TModel>(Expression<Func<TModel, TProperty>> propertyExpression)
Parameters
propertyExpressionExpression<Func<TModel, TProperty>>

The expression that refers to a property

Returns

PropertyInfo

The extracted property

Type Parameters
TProperty

The type of the property to extract

TModel

The model to extract the property from

| Improve this Doc View Source

FixRoute(String)

Fixes a route string provided through user input

C#
protected static string FixRoute(string routeString)
Parameters
routeStringString

The inputted route string

Returns

String

The route string, ensuring that it ends with a / and starts with a letter

  • Improve this Doc
  • View Source
Back to top Generated by DocFX