Пример #1
0
        protected internal override string GetCql(out object[] values)
        {
            var getBindValues = _mapperFactory.GetValueCollector <TEntity>("INSERT ALL LINQ");
            var parameters    = new List <object>(getBindValues(_entity));
            var visitor       = new CqlExpressionVisitor(PocoData, Table.Name, Table.KeyspaceName);
            var cql           = visitor.GetInsert(_entity, _ifNotExists, _ttl, _timestamp, parameters);

            values = parameters.ToArray();
            return(cql);
        }