コード例 #1
0
        public IPropertyIdMap Id <TId>(Expression <Func <T, TId> > expression)
        {
            string propertyName = PropertyMapTranslator.Translate(expression);

            PrimaryKeyName  = propertyName;
            CurrentProperty = Type.GetProperty(propertyName);
            return(this);
        }
コード例 #2
0
ファイル: QueryMap.cs プロジェクト: gabriel-adan/HybridORM
        public IPropertyMap Map <E>(Expression <Func <Q, E> > expression)
        {
            string propertyName = PropertyMapTranslator.Translate(expression);

            CurrentProperty = Type.GetProperty(propertyName);
            return(this);
        }