Exemple #1
0
 public ClassViewModel(TypeViewModel type, string controllerName, string apiName, bool hasDbSet)
     : this(controllerName, apiName, hasDbSet)
 {
     if (type.Wrapper is Wrappers.ReflectionTypeWrapper)
     {
         Wrapper = new ReflectionClassWrapper(((ReflectionTypeWrapper)(type.Wrapper)).Info);
     }
     else
     {
         Wrapper = new SymbolClassWrapper((INamedTypeSymbol)(((SymbolTypeWrapper)(type.Wrapper)).Symbol));
     }
 }
Exemple #2
0
 public ClassViewModel(Type type, string controllerName, string apiName, bool hasDbSet)
     : this(controllerName, apiName, hasDbSet)
 {
     Wrapper = new ReflectionClassWrapper(type);
 }