Driver/SpannerDBDriver.cs
/// <summary>
/// Fills the NET to DB type conversions list.
/// </summary>
Fills the NET to DB type conversions list.
Fills the NET to DB type conversions list .
protected override void FillNETToDBTypeConversionsList()
		{
			this.NETToDBTypeConversions.Add(new NETToDBTypeConversion(typeof(DateTime), (int)SpannerDbTypes.Timestamp, 0, 0, 0));
			this.NETToDBTypeConversions.Add(new NETToDBTypeConversion(typeof(DateTime), (int)SpannerDbTypes.Date, 0, 0, 0));
			this.NETToDBTypeConversions.Add(new NETToDBTypeConversion(typeof(byte[]), (int)SpannerDbTypes.Bytes, -1, -1, -1));
			this.NETToDBTypeConversions.Add(new NETToDBTypeConversion(typeof(string), (int)SpannerDbTypes.String, -1, -1, -1));
			this.NETToDBTypeConversions.Add(new NETToDBTypeConversion(typeof(double), (int)SpannerDbTypes.Float64, 0, -1, 0));
			this.NETToDBTypeConversions.Add(new NETToDBTypeConversion(typeof(long), (int)SpannerDbTypes.Int64, 0, -1, 0));
			this.NETToDBTypeConversions.Add(new NETToDBTypeConversion(typeof(bool), (int)SpannerDbTypes.Bool, 0, 0, 0));
		}
protected override void FillNETToDBTypeConversionsList ( ) { this . NETToDBTypeConversions . Add ( new NETToDBTypeConversion ( typeof ( DateTime ) , ( int ) SpannerDbTypes . Timestamp , 0 , 0 , 0 ) ) ; this . NETToDBTypeConversions . Add ( new NETToDBTypeConversion ( typeof ( DateTime ) , ( int ) SpannerDbTypes . Date , 0 , 0 , 0 ) ) ; this . NETToDBTypeConversions . Add ( new NETToDBTypeConversion ( typeof ( byte [ ] ) , ( int ) SpannerDbTypes . Bytes , - 1 , - 1 , - 1 ) ) ; this . NETToDBTypeConversions . Add ( new NETToDBTypeConversion ( typeof ( string ) , ( int ) SpannerDbTypes . String , - 1 , - 1 , - 1 ) ) ; this . NETToDBTypeConversions . Add ( new NETToDBTypeConversion ( typeof ( double ) , ( int ) SpannerDbTypes . Float64 , 0 , - 1 , 0 ) ) ; this . NETToDBTypeConversions . Add ( new NETToDBTypeConversion ( typeof ( long ) , ( int ) SpannerDbTypes . Int64 , 0 , - 1 , 0 ) ) ; this . NETToDBTypeConversions . Add ( new NETToDBTypeConversion ( typeof ( bool ) , ( int ) SpannerDbTypes . Bool , 0 , 0 , 0 ) ) ; }
Fills the NET to DB type conversions list.
Fills the NET to DB type conversions list .