Пример #1
0
 protected FetcherNavigationProperty(OdcmProperty odcmProperty) : base(odcmProperty)
 {
     FieldName = NamesService.GetFetcherFieldName(odcmProperty);
     InstanceType = NamesService.GetFetcherTypeName(odcmProperty.Type);
     PrivateSet = true;
     Type = new Type(NamesService.GetFetcherInterfaceName(odcmProperty.Type));
 }
Пример #2
0
 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)));
 }
Пример #3
0
 public EntityInstanceFunctionMethod(OdcmMethod odcmMethod) : base(odcmMethod)
 {
     InstanceName = NamesService.GetConcreteTypeName(odcmMethod.ReturnType);
     ReturnType = Type.TaskOf(new Type(NamesService.GetPublicTypeName(odcmMethod.ReturnType)));
 }
Пример #4
0
 public DefaultConstructor(OdcmClass odcmClass, Identifier className)
 {
     OdcmClass = odcmClass;
     Identifier = className;
 }
Пример #5
0
 private static Identifier GetConcreteInterfaceName(Identifier typeName)
 {
     return new Identifier(typeName.Namespace, "I" + typeName.Name);
 }
Пример #6
0
 public Type(Identifier typeIdentifier, params Type[] genericParameters)
 {
     GenericParameters = genericParameters;
     TypeIdentifier    = typeIdentifier;
 }
Пример #7
0
 public Type(Identifier typeIdentifier, params Type[] genericParameters)
 {
     GenericParameters = genericParameters;
     TypeIdentifier = typeIdentifier;
 }
Пример #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));
 }