Example #1
0
        private static basictable ORM_CreateProxy(System.Data.IDataReader result, System.Collections.Generic.IDictionary <string, int> ordinals)
        {
            var obj = new basictable();

            obj.pid          = (long)result[ordinals["pid"]];
            obj.numfield     = (int)result[ordinals["numfield"]];
            obj.boolfield    = (bool)result[ordinals["boolfield"]];
            obj.privatefield = (bool)result[ordinals["privatefield"]];
            obj.textfield    = (string)result[ordinals["textfield"]];
            return(obj);
        }
Example #2
0
 public override object CreateRandomObject()
 {
     basictable item = new basictable();
     Random rand = new Random(DateTime.Now.Millisecond);
     item.numfield = rand.Next(1000000);
     item.boolfield = (rand.Next(100) >= 50);
     item.privatefield = (rand.Next(100) >= 50);
     item.textfield = "";
     for (int i = 0; i < 10; i++)
     {
         item.textfield += "abcdefghijklmnopqrstuvwxyz1234567890-_/."[rand.Next(40)];
     }
     return item;
 }
Example #3
0
        public override object CreateRandomObject()
        {
            basictable item = new basictable();
            Random     rand = new Random(DateTime.Now.Millisecond);

            item.numfield     = rand.Next(1000000);
            item.boolfield    = (rand.Next(100) >= 50);
            item.privatefield = (rand.Next(100) >= 50);
            item.textfield    = "";
            for (int i = 0; i < 10; i++)
            {
                item.textfield += "abcdefghijklmnopqrstuvwxyz1234567890-_/."[rand.Next(40)];
            }
            return(item);
        }
Example #4
0
 private static basictable ORM_CreateProxy(System.Data.IDataReader result, System.Collections.Generic.IDictionary<string, int> ordinals)
 {
     var obj = new basictable();
     obj.pid = (long)result[ordinals["pid"]];
     obj.numfield = (int)result[ordinals["numfield"]];
     obj.boolfield = (bool)result[ordinals["boolfield"]];
     obj.privatefield = (bool)result[ordinals["privatefield"]];
     obj.textfield = (string)result[ordinals["textfield"]];
     return obj;
 }