Beispiel #1
0
        deco_version CreateDecoVersion()
        {
            // Need a rounded date as DB can't store millis
            var now = DateTime.UtcNow;

            now = new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second);

            // Setup a record
            var o = new deco_version();

            o.title        = string.Format("insert {0}", r.Next());
            o.content      = string.Format("insert {0}", r.Next());
            o.draft        = true;
            o.date_created = now;
            o.state        = State.Maybe;

            return(o);
        }
Beispiel #2
0
        deco_version CreateDecoVersion()
        {
            // Need a rounded date as DB can't store millis
            var now = DateTime.UtcNow;
            now = new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second);

            // Setup a record
            var o = new deco_version();
            o.title = string.Format("insert {0}", r.Next());
            o.content = string.Format("insert {0}", r.Next());
            o.draft = true;
            o.date_created = now;
            o.state = State.Maybe;

            return o;
        }