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))); }
public DefaultConstructor(OdcmClass odcmClass, Identifier className) { OdcmClass = odcmClass; Identifier = className; }
private static Identifier GetConcreteInterfaceName(Identifier typeName) { return new Identifier(typeName.Namespace, "I" + typeName.Name); }
public Type(Identifier typeIdentifier, params Type[] genericParameters) { GenericParameters = genericParameters; TypeIdentifier = typeIdentifier; }
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)); }