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

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

            return(new CodeTypeReferenceExpression(className));
        }
Beispiel #3
0
        public static CodeExpression GetEntityNameReferenceExpression(EntityDescription entityDescription)
        {
            string className = OrmCodeGenNameHelper.GetQualifiedEntityName(entityDescription) + ".Descriptor";

            return(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(className), "EntityName"));
        }