Beispiel #1
0
        public LifecycleVeto OnSave(ISession s)
        {
            _string    = "a string";
            _date      = new DateTime(1970, 01, 01);
            _timestamp = DateTime.Now;
            _integer   = -666;
            _long      = 696969696969696969L - count++;
            _short     = 42;
            _float     = 6666.66f;
            //_double = new Double( 1.33e-69 );  // this double is too big for the sap db jdbc driver
//			_double = 1.12e-36;
            _boolean = true;
            _byte    = 127;
            _int     = 2;
            _char    = '@';
            _bytes   = Encoding.ASCII.GetBytes(_string);
            _status  = FooStatus.ON;
            custom   = new string[]
            {
                "foo", "bar"
            };
            //_component = new FooComponent("foo", 12, new DateTime[] { _date, _timestamp, DateTime.MinValue, new DateTime( DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day ) }, new FooComponent("bar", 666, new DateTime[] { new DateTime(1999,12,3), DateTime.MinValue }, null ) );
            _component =
                new FooComponent("foo", 12,
                                 new DateTime[]
                                 { _date, _timestamp, new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day) },
                                 new FooComponent("bar", 666, new DateTime[] { new DateTime(1999, 12, 3) }, null));
            _component.Glarch = new Glarch();
            _dependent        = new Fee();
            _dependent.Fi     = "belongs to foo # " + Key;
            _locale           = Thread.CurrentThread.CurrentCulture;
            return(LifecycleVeto.NoVeto);
        }
Beispiel #2
0
 // added this ctor to test Enums in ctor for query results
 public Result(string name, long amount, int count, FooStatus status)
     : this(name, amount, count)
 {
     _status = status;
 }
		public LifecycleVeto OnSave(ISession s)
		{
			_string = "a string";
			_date = new DateTime( 1970, 01, 01 );
			_timestamp = DateTime.Now;
			_integer = -666;
			_long = 696969696969696969L - count++;
			_short = 42;
			_float = 6666.66f;
			//_double = new Double( 1.33e-69 );  // this double is too big for the sap db jdbc driver
//			_double = 1.12e-36;
			_boolean = true;
			_byte = 127;
			_int = 2;
			_char = '@';
			_bytes = System.Text.Encoding.ASCII.GetBytes(_string);
			_status=FooStatus.ON;
			custom = new string[]
			  {
				  "foo", "bar" 
			  };
			//_component = new FooComponent("foo", 12, new DateTime[] { _date, _timestamp, DateTime.MinValue, new DateTime( DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day ) }, new FooComponent("bar", 666, new DateTime[] { new DateTime(1999,12,3), DateTime.MinValue }, null ) );
			_component = new FooComponent("foo", 12, new DateTime[] { _date, _timestamp, new DateTime( DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day ) }, new FooComponent("bar", 666, new DateTime[] { new DateTime(1999,12,3) }, null ) );
			_component.Glarch = new Glarch();
			_dependent = new Fee();
			_dependent.Fi = "belongs to foo # " + Key;
			_locale = System.Threading.Thread.CurrentThread.CurrentCulture;
			return LifecycleVeto.NoVeto;
		}
Beispiel #4
0
		// added this ctor to test Enums in ctor for query results
		public Result(string name, long amount, int count, FooStatus status)
			: this(name, amount, count)
		{
			_status = status;
		}