protected FetcherNavigationProperty(OdcmProperty odcmProperty) : base(odcmProperty)
 {
     FieldName = NamesService.GetFetcherFieldName(odcmProperty);
     InstanceType = NamesService.GetFetcherTypeName(odcmProperty.Type);
     PrivateSet = true;
     Type = new Type(NamesService.GetFetcherInterfaceName(odcmProperty.Type));
 }
 public ConcreteExecuteAsyncMethod(OdcmType odcmType)
 {
     EntityIdentifier = NamesService.GetConcreteInterfaceName(odcmType);
     DefiningInterface = NamesService.GetFetcherInterfaceName(odcmType);
     Name = "ExecuteAsync";
     Parameters = Parameter.Empty;
     ReturnType = new Type(new Identifier("global::System.Threading.Tasks", "Task"),
          new Type(NamesService.GetConcreteInterfaceName(odcmType)));
 }
 public EntityInstanceFunctionMethod(OdcmMethod odcmMethod) : base(odcmMethod)
 {
     InstanceName = NamesService.GetConcreteTypeName(odcmMethod.ReturnType);
     ReturnType = Type.TaskOf(new Type(NamesService.GetPublicTypeName(odcmMethod.ReturnType)));
 }
Example #4
0
 public DefaultConstructor(OdcmClass odcmClass, Identifier className)
 {
     OdcmClass = odcmClass;
     Identifier = className;
 }
Example #5
0
 private static Identifier GetConcreteInterfaceName(Identifier typeName)
 {
     return new Identifier(typeName.Namespace, "I" + typeName.Name);
 }
Example #6
0
 public Type(Identifier typeIdentifier, params Type[] genericParameters)
 {
     GenericParameters = genericParameters;
     TypeIdentifier    = typeIdentifier;
 }
Example #7
0
 public Type(Identifier typeIdentifier, params Type[] genericParameters)
 {
     GenericParameters = genericParameters;
     TypeIdentifier = typeIdentifier;
 }
Example #8
0
 private static IEnumerable<Constructor> DefaultOnly(OdcmClass odcmClass, Identifier classIdentifier)
 {
     return new[] { new DefaultConstructor(odcmClass, classIdentifier) };
 }
 protected ConcreteNavigationAccessorProperty(OdcmProperty odcmProperty) : base(odcmProperty)
 {
     FieldName = NamesService.GetPropertyFieldName(odcmProperty);
     InstanceType = NamesService.GetFetcherTypeName(odcmProperty.Type);
     Type = new Type(NamesService.GetConcreteTypeName(odcmProperty.Type));
 }