public CodeGenerator(ConnectionProperties connectionProperties, string ns, string typeName)
        {
            if (connectionProperties == null)
            {
                throw new ArgumentNullException(nameof(connectionProperties));
            }
            if (string.IsNullOrEmpty(ns))
            {
                throw new ArgumentNullException(nameof(ns));
            }
            if (string.IsNullOrEmpty(typeName))
            {
                throw new ArgumentNullException(nameof(typeName));
            }

            ConnectionProperties = connectionProperties;
            Namespace            = ns;
            TypeName             = typeName;
            _database            = new LiteDatabase(connectionProperties.GetConnectionString());
            _collectionNames     = _database.GetCollectionNames();
        }