コード例 #1
0
        public PetaPocoMap <T> PrimaryKey(Expression <Func <T, object> > column, bool autoIncrement)
        {
            var propertyInfo = PropertyHelper <T> .GetProperty(column);

            return(PrimaryKey(propertyInfo.Name, autoIncrement));
        }
コード例 #2
0
        public PetaPocoMap <T> PrimaryKey(Expression <Func <T, object> > column, string sequenceName)
        {
            var propertyInfo = PropertyHelper <T> .GetProperty(column);

            return(PrimaryKey(propertyInfo.Name, sequenceName));
        }