public SchemaObjects(Type documentType, TableDefinition table, ActualIndex[] actualIndices, FunctionBody function) { DocumentType = documentType; Table = table; Function = function; actualIndices.Each(x => ActualIndices.Add(x.Name, x)); }
public SchemaObjects(Type documentType, TableDefinition table, ActualIndex[] actualIndices, string upsertFunction, List<string> drops) { DocumentType = documentType; Table = table; actualIndices.Each(x => ActualIndices.Add(x.Name, x)); UpsertFunction = upsertFunction?.CanonicizeSql(); FunctionDropStatements = drops; }