Esempio n. 1
0
        public static CodeExpression GetFieldNameReferenceExpression(PropertyDescription propertyDesc)
        {
            string className = OrmCodeGenNameHelper.GetEntityClassName(propertyDesc.Entity) + ".Properties";

            return(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(className),
                                                    propertyDesc.Name));
        }
Esempio n. 2
0
        public static CodeExpression GetEntityClassReferenceExpression(EntityDescription entityDesc)
        {
            string className = OrmCodeGenNameHelper.GetEntityClassName(entityDesc);

            return(new CodeTypeReferenceExpression(className));
        }