Show / Hide Table of Contents

Method SetDefault

| Improve this Doc View Source

SetDefault<T>(T, T, String, String)

Specifies default expression for column.

Declaration
public static void SetDefault<T>(this T column, T expression, string name, string description)

    where T : Column, new()
Parameters
Type Name Description
T column

The column.

T expression

The expression.

System.String name

The name of the default constraint.

System.String description

The description of the default constraint.

Type Parameters
Name Description
T

Type of the column.

Remarks

To specify default constant value, call SetDefaultValue(T, String, String) method.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest