Show / Hide Table of Contents

Class ColumnNameAttribute

Class ColumnNameAttribute. This attribute can be applied to a Property or Field and define the column name in the database table to which that Property or Field is to be mapped. This class cannot be inherited.

Inheritance
System.Object
System.Attribute
ColumnNameAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: spyderSoft.DataLayer.Core.Attributes
Assembly: spyderSoft.DataLayer.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class ColumnNameAttribute : Attribute

Constructors

| Improve this Doc View Source

ColumnNameAttribute(String)

Initializes a new instance of the ColumnNameAttribute class.

Declaration
public ColumnNameAttribute(string name)
Parameters
Type Name Description
System.String name

The name of the database column to which the property should be mapped.

Properties

| Improve this Doc View Source

Name

Gets or sets the name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The name of the database column to which the property should be mapped.

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