Ejemplo n.º 1
0
        public IdentityPart Id <TId>(string column)
        {
            IdentityPart identityPart = new IdentityPart(typeof(T), typeof(TId));

            if (column != null)
            {
                identityPart.SetName(column);
                identityPart.Column(column);
            }
            this.providers.Id = (IIdentityMappingProvider)identityPart;
            return(identityPart);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Create an Id that doesn't have a corresponding property in
        /// the domain object.
        /// </summary>
        /// <typeparam name="TId">Type of the id</typeparam>
        /// <param name="column">Name and column name of the id</param>
        public IdentityPart Id <TId>(string column)
        {
            var part = new IdentityPart(typeof(T), typeof(TId));

            if (column != null)
            {
                part.SetName(column);
                part.Column(column);
            }

            id = part;

            return(part);
        }