public static BaseParameterMetadata MapToBase(DBParameterModel parameterMetadata)
        {
            BaseParameterMetadata parameterModel = new BaseParameterMetadata
            {
                ParameterName = parameterMetadata.Name,
                TypeMetadata  = DBTypeMapper.EmitReferenceDTG(parameterMetadata.TypeMetadata),
            };

            return(parameterModel);
        }
Beispiel #2
0
        public static BasePropertyMetadata MapToBase(DBPropertyModel propertyMetadata)
        {
            BasePropertyMetadata propertyModel = new BasePropertyMetadata
            {
                Name         = propertyMetadata.Name,
                TypeMetadata = DBTypeMapper.EmitReferenceDTG(propertyMetadata.TypeMetadata)
            };

            return(propertyModel);
        }
Beispiel #3
0
        private static BaseTypeMetadata EmitReturnTypeDTG(DBMethodModel method)
        {
            DBMethodModel methodInfo = method as DBMethodModel;

            if (methodInfo == null)
            {
                return(null);
            }
            return(DBTypeMapper.EmitReferenceDTG(methodInfo.ReturnType));
        }