protected void Initialize() { lock (_initLock) { if (!isInitialized) { if (!StorableTypes.Any()) { throw new InvalidOperationException("No types were specified. Call AddType for each type to store."); } isInitialized = true; SchemaDefinitionCreateResult = TypeSchemaGenerator.CreateSchemaDefinition(StorableTypes); } } }
public virtual void Initialize() { if (!isInitialized) { lock (_initLock) { if (!isInitialized) { if (!StorableTypes.Any()) { throw new InvalidOperationException("No types were specified. Call AddType for each type to store."); } isInitialized = true; TypeDaoGenerator.AddTypes(StorableTypes); } } } }