Beispiel #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));
     }
 }
Beispiel #2
0
 public ClassViewModel(ITypeSymbol classSymbol, string controllerName, string apiName, bool hasDbSet) : this(controllerName, apiName, hasDbSet)
 {
     Wrapper = new SymbolClassWrapper(classSymbol);
 }