Search Results for

    Show / Hide Table of Contents

    Class InterfaceWriter

    Used to write the interface definition for a ICustomObject created with LemonEdge Auto-Code designers

    This will create the interface definition in c# code for the custom object, and is used internally by the system to dynamically load custom objects, as well as by tools to provide the code to users

    The system needs to create the entity descriptor for the custom object in order to build the interface. This is done via CreateTempFrom(ICustomObject, IEnumerable<ICustomObjectProperty>)
    Inheritance
    System.Object
    InterfaceWriter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.API.Descriptors.Writers
    Assembly: API.dll
    Syntax
    public static class InterfaceWriter

    Methods

    AddFileFooterAndCloseNamespaces(ClassFileWriter)

    Closes the [LemonEdge.Entities] namespace started by AddFileHeadersAndNamespace(ClassFileWriter)

    Declaration
    public static void AddFileFooterAndCloseNamespaces(ClassFileWriter writer)
    Parameters
    Type Name Description
    ClassFileWriter writer

    The writer to close the namespace on

    AddFileHeadersAndNamespace(ClassFileWriter)

    Adds the standard using statements required for the interface defintions code to work correctly in LemonEdge, and starts the namespace [LemonEdge.Entities]

    Declaration
    public static void AddFileHeadersAndNamespace(ClassFileWriter writer)
    Parameters
    Type Name Description
    ClassFileWriter writer

    The writer to add the using statements to

    WriteToFile(EntityDescriptor, ClassFileWriter, IEnumerable<ICustomObjectProperty>)

    Write the interface definition for a ICustomObject created with LemonEdge Auto-Code designers to the specified writer

    Declaration
    public static void WriteToFile(EntityDescriptor descriptor, ClassFileWriter writer, IEnumerable<ICustomObjectProperty> props)
    Parameters
    Type Name Description
    EntityDescriptor descriptor

    An entitydescriptor describing the ICustomObject. This is done via CreateTempFrom(ICustomObject, IEnumerable<ICustomObjectProperty>)

    ClassFileWriter writer

    The writer to add the generated code to

    System.Collections.Generic.IEnumerable<ICustomObjectProperty> props

    The custom object properties, used to provide custom attributes and validation to the generated interface

    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.