DapperExtensions.Mapper.PropertyMap.Ignore C# (CSharp) Méthode

Ignore() public méthode

Fluently sets the ignore status of the property.
public Ignore ( ) : PropertyMap
Résultat PropertyMap
        public PropertyMap Ignore()
        {
            if (KeyType != KeyType.NotAKey)
            {
                throw new ArgumentException(string.Format("'{0}' is a key field and cannot be ignored.", Name));
            }

            Ignored = true;
            return this;
        }