public InsertDataCommand(ICommandPerformer<string> exec, ICache cache, ITypeMapper mapper, EntityData value)
 {
     this.value = value;
     this.cache = cache;
     this.executor = exec;
     this.schema = cache.Pick<Document>();
     this.nameSpace = schema.Settings[Keys.Namespace];
     this.mapper = mapper;
     this.properties = schema.Entities.Single(x => x.Name == value.EntityName).Properties;
 }
 public BulkInsertDataCommand(ICache cache, ICommandPerformer<IBulkInsertDetails> executor, EntityData value)
 {
     this.value = value;
     var database = cache.Pick<Document>();
     this.schema = database.Settings[Keys.Namespace];
     this.database = database.Name;
     this.executor = executor;
     this.properties = database.Entities.Single(x => x.Name == value.EntityName).Properties.Select(x => x.Name).ToList();
     this.columnNumber = properties.Count();
 }