EventPersister.ImportSchemaFull() — produces a full schema (see “Schema Import Models”) that preserves the object hierarchy of the source classes. The method imports the schema of each event declared in the class or .dll file specified (including dependencies), and returns an array of class names for the imported events.
string[] ImportSchemaFull(string classOrDLLName)
string[] ImportSchemaFull(string[] classes)
parameters:
-
classes — an array containing the names of the classes to be imported.
-
classOrDLLName — a class name or the name of a .dll file containing the classes to be imported. If a .dll file is specified, all classes in the file will be imported.
If the argument is a class name, the corresponding class and any dependencies will be imported. If the argument is a .dll file, all classes in the file and any dependencies will be imported. If such schema already exists, and it appears to be in sync with the .NET schema, import will be skipped. Should a schema already exist, but it appears different, a check will be performed to see if there is any data. If there is no data, a new schema will be generated. If there is existing data, an exception will be thrown.
see also:
Importing a Schema