本文整理汇总了C#中OptArgs类的典型用法代码示例。如果您正苦于以下问题:C# OptArgs类的具体用法?C# OptArgs怎么用?C# OptArgs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OptArgs类属于命名空间,在下文中一共展示了OptArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Query
public Query(QueryType type, long token, ReqlAst term, OptArgs globalOptions)
{
this.Type = type;
this.Token = token;
this.Term = term;
this.GlobalOptions = globalOptions;
}
示例2: Javascript
///<summary>
/// "timeout": "T_NUM"
///</summary>
public Javascript this[OptArgs optArgs] {
get
{
var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
return new Javascript (this.Args, newOptArgs);
}
}
示例3: Random
///<summary>
/// "float": "T_BOOL"
///</summary>
public Random this[OptArgs optArgs] {
get
{
var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
return new Random (this.Args, newOptArgs);
}
}
示例4: Min
///<summary>
/// "index": "T_STR"
///</summary>
public Min this[OptArgs optArgs] {
get
{
var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
return new Min (this.Args, newOptArgs);
}
}
示例5: GetAll
///<summary>
/// "index": "T_STR"
///</summary>
public GetAll this[OptArgs optArgs] {
get
{
var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
return new GetAll (this.Args, newOptArgs);
}
}
示例6: IndexRename
///<summary>
/// "overwrite": "T_BOOL"
///</summary>
public IndexRename this[OptArgs optArgs] {
get
{
var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
return new IndexRename (this.Args, newOptArgs);
}
}
示例7: Iso8601
///<summary>
/// "default_timezone": "T_STR"
///</summary>
public Iso8601 this[OptArgs optArgs] {
get
{
var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
return new Iso8601 (this.Args, newOptArgs);
}
}
示例8: Slice
///<summary>
/// "left_bound": "E_BOUND",
/// "right_bound": "E_BOUND"
///</summary>
public Slice this[OptArgs optArgs] {
get
{
var newOptArgs = OptArgs.FromMap(this.OptArgs).With(optArgs);
return new Slice (this.Args, newOptArgs);
}
}
示例9: FromOptArgs
/// <summary>
/// Factory method for FormatOptions from OptArgs
/// </summary>
public static FormatOptions FromOptArgs(OptArgs args)
{
var fmt = new FormatOptions();
// TODO: find a better way to do this.
ReqlAst datum;
var value = args.TryGetValue("time_format", out datum) ? ((Datum)datum).datum : new Datum("native").datum;
fmt.RawTime = value.Equals("raw");
value = args.TryGetValue("binary_format", out datum) ? ((Datum)datum).datum : new Datum("native").datum;
fmt.RawBinary = value.Equals("raw");
value = args.TryGetValue("group_format", out datum) ? ((Datum)datum).datum : new Datum("native").datum;
fmt.RawGroups = value.Equals("raw");
return fmt;
}
示例10: Circle
/// <summary>
/// <para>Construct a circular line or polygon. A circle in RethinkDB is a polygon or line <em>approximating</em> a circle of a given radius around a given center, consisting of a specified number of vertices (default 32).</para>
/// </summary>
/// <example><para>Example: Define a circle.</para>
/// <code>r.table('geo').insert({
/// id: 300,
/// name: 'Hayes Valley',
/// neighborhood: r.circle([-122.423246,37.779388], 1000)
/// }).run(conn, callback);
/// </code></example>
public Circle (Arguments args, OptArgs optargs)
: this(TermType.CIRCLE, args, optargs) {
}
示例11: Without
/// <summary>
/// <para>The opposite of pluck; takes an object or a sequence of objects, and returns them with
/// the specified paths removed.</para>
/// </summary>
/// <example><para>Example: Since we don't need it for this computation we'll save bandwidth and leave
/// out the list of IronMan's romantic conquests.</para>
/// <code>r.table('marvel').get('IronMan').without('personalVictoriesList').run(conn, callback)
/// </code></example>
public Without (Arguments args, OptArgs optargs)
: this(TermType.WITHOUT, args, optargs) {
}
示例12: Binary
protected Binary (TermType termType, Arguments args, OptArgs optargs) : base(termType, args, optargs){
}
示例13: Random
/// <summary>
/// <para>Generate a random number between given (or implied) bounds. <code>random</code> takes zero, one or two arguments.</para>
/// </summary>
/// <example><para>Example: Generate a random number in the range <code>[0,1)</code></para>
/// <code>r.random().run(conn, callback)
/// </code></example>
public Random (Arguments args, OptArgs optargs)
: base(TermType.RANDOM, args, optargs) {
}
示例14: TableCreate
/// <summary>
/// <para>Create a table. A RethinkDB table is a collection of JSON documents.</para>
/// </summary>
/// <example><para>Example: Create a table named 'dc_universe' with the default settings.</para>
/// <code>r.db('test').tableCreate('dc_universe').run(conn, callback)
/// </code></example>
public TableCreate (Arguments args, OptArgs optargs)
: base(TermType.TABLE_CREATE, args, optargs) {
}
示例15: IndexRename
protected IndexRename (TermType termType, Arguments args, OptArgs optargs) : base(termType, args, optargs)
{
}