public GeneratedCodeVisitor(SourceBuilder output, Dictionary<string, object> globalSymbols, NullBehaviour nullBehaviour)
        {
            _nullBehaviour = nullBehaviour;
            _source = output;

            _scope = new Scope(new Scope(null) { Variables = globalSymbols });
        }
示例#2
0
        public GeneratedCodeVisitor(SourceWriter source, Dictionary<string, object> globalSymbols, NullBehaviour nullBehaviour)
        {
            _nullBehaviour = nullBehaviour;
            _source = source;

            _scope = new Scope(new Scope(null) { Variables = globalSymbols });
        }
示例#3
0
        public GeneratedCodeVisitor(SourceWriter source, Dictionary <string, object> globalSymbols, NullBehaviour nullBehaviour)
        {
            _nullBehaviour = nullBehaviour;
            _source        = source;

            _scope = new Scope(new Scope(null)
            {
                Variables = globalSymbols
            });
        }
示例#4
0
 public GlobalMembersVisitor(SourceWriter output, Dictionary <string, object> globalSymbols, NullBehaviour nullBehaviour)
 {
     _source        = output;
     _globalSymbols = globalSymbols;
     _nullBehaviour = nullBehaviour;
 }
示例#5
0
 public SparkSettings SetNullBehaviour(NullBehaviour nullBehaviour)
 {
     NullBehaviour = nullBehaviour;
     return this;
 }
示例#6
0
 public GlobalMembersVisitor(SourceWriter output, Dictionary<string, object> globalSymbols, NullBehaviour nullBehaviour)
 {
     _source = output;
     _globalSymbols = globalSymbols;
     _nullBehaviour = nullBehaviour;
 }
示例#7
0
 public SparkSettings SetNullBehaviour(NullBehaviour nullBehaviour)
 {
     NullBehaviour = nullBehaviour;
     return(this);
 }
示例#8
0
		/// <summary>
		/// Writes the field.
		/// </summary>
		/// <param name="fieldValue">The field value.</param>
		/// <param name="nullBehaviour">The null behaviour.</param>
		/// <returns></returns>
		public static object WriteField(
			object fieldValue,
			NullBehaviour nullBehaviour )
		{
			return WriteFieldObject(
				AdoNetOleDBParamCollection.ApplyNullBehaviourToValue(
				fieldValue,
				nullBehaviour ) );
		}