예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 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);
             }
         }
     }
 }