Esempio n. 1
0
        protected override void beforeUpdate(DatabaseConnection dbConn, DBManager db)
        {
            base.beforeUpdate(dbConn, db);
            DBField syncIDField = db.getField("SynID");

            if (syncIDField != null)
            {
                if (string.IsNullOrEmpty((string)syncIDField.getValue(this)))
                {
                    syncIDField.setValue(this, Guid.NewGuid().ToString().ToUpper());
                }
            }
        }