/// <summary>
        /// </summary>
        public ArangoConfiguration()
        {
            BatchSize         = 500;
            Serializer        = new ArangoNewtonsoftSerializer(new ArangoNewtonsoftDefaultContractResolver());
            Transport         = new ArangoHttpTransport(this);
            ResolveCollection = type => type.Name;
            ResolveProperty   = (type, name) =>
            {
                switch (name)
                {
                case "Key":
                    return("_key");

                case "Id":
                    return("_id");

                case "Revision":
                    return("_rev");

                case "From":
                    return("_from");

                case "To":
                    return("_to");
                }

                // TODO: camelCase
                return(name);
            };
            ResolveGroupBy = s => s;
        }
Exemplo n.º 2
0
 /// <summary>
 /// </summary>
 public ArangoConfiguration()
 {
     BatchSize  = 500;
     Serializer = new ArangoNewtonsoftSerializer(new ArangoNewtonsoftDefaultContractResolver());
     Transport  = new ArangoHttpTransport(this);
 }