Search Results for

    Show / Hide Table of Contents

    Interface IColumnChangeDescriptor

    Mapping entity column descriptor change interface.

    Namespace: LinqToDB.Mapping
    Assembly: linq2db.dll
    Syntax
    public interface IColumnChangeDescriptor

    Properties

    | Improve this Doc View Source

    ColumnName

    Gets or sets the name of a column in database. If not specified, MemberName value will be returned.

    Declaration
    string ColumnName { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    MemberName

    Gets the name of mapped member. When applied to class or interface, should contain name of property of field.

    If column is mapped to a property or field of composite object, MemberName should contain a path to that member using dot as separator.

    public class Address
    {
        public string City     { get; set; }
        public string Street   { get; set; }
        public int    Building { get; set; }
    }
    
    [Column("city", "Residence.Street")]
    [Column("user_name", "Name")]
    public class User
    {
        public string Name;
    
        [Column("street", ".Street")]
        [Column("building_number", MemberName = ".Building")]
        public Address Residence { get; set; }
    }

    Declaration
    string MemberName { get; }
    Property Value
    Type Description
    System.String

    Extension Methods

    Map.DeepCopy<T>(T)
    Sql.IsDistinctFrom<T>(T, T)
    Sql.IsNotDistinctFrom<T>(T, T)
    SqlExtensions.In<T>(T, IEnumerable<T>)
    SqlExtensions.In<T>(T, IQueryable<T>)
    SqlExtensions.In<T>(T, T[])
    SqlExtensions.In<T>(T, T, T)
    SqlExtensions.In<T>(T, T, T, T)
    SqlExtensions.NotIn<T>(T, IEnumerable<T>)
    SqlExtensions.NotIn<T>(T, IQueryable<T>)
    SqlExtensions.NotIn<T>(T, T[])
    SqlExtensions.NotIn<T>(T, T, T)
    SqlExtensions.NotIn<T>(T, T, T, T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2011-2022 linq2db.com

    Generated by DocFX