private void VisitModelSpan(ModelSpan span) {
            SetBaseType(span.ModelTypeName);

            if (DesignTimeMode) {
                WriteHelperVariable(span.Content, "__modelHelper");
            }
        }
Exemplo n.º 2
0
        private void VisitModelSpan(ModelSpan span)
        {
            SetBaseType(span.ModelTypeName);

            if (DesignTimeMode)
            {
                WriteHelperVariable(span.Content, "__modelHelper");
            }
        }
        private void VisitModelSpan(ModelSpan span) {
            string modelName = span.ModelTypeName;
            var baseType = new CodeTypeReference(Host.DefaultBaseClass + "(Of " + modelName + ")");

            GeneratedClass.BaseTypes.Clear();
            GeneratedClass.BaseTypes.Add(baseType);

            if (DesignTimeMode) {
                WriteHelperVariable(span.Content, "__modelHelper");
            }
        }
Exemplo n.º 4
0
        private void VisitModelSpan(ModelSpan span)
        {
            string modelName = span.ModelTypeName;
            var    baseType  = new CodeTypeReference(Host.DefaultBaseClass + "(Of " + modelName + ")");

            GeneratedClass.BaseTypes.Clear();
            GeneratedClass.BaseTypes.Add(baseType);

            if (DesignTimeMode)
            {
                WriteHelperVariable(span.Content, "__modelHelper");
            }
        }
Exemplo n.º 5
0
 private bool Equals(ModelSpan span) {
     return base.Equals(span) && String.Equals(ModelTypeName, span.ModelTypeName, StringComparison.Ordinal);
 }
Exemplo n.º 6
0
 private bool Equals(ModelSpan span)
 {
     return(base.Equals(span) && String.Equals(ModelTypeName, span.ModelTypeName, StringComparison.Ordinal));
 }
Exemplo n.º 7
0
        public override bool Equals(object obj)
        {
            ModelSpan span = obj as ModelSpan;

            return(span != null && Equals(span));
        }