Exemplo n.º 1
0
        public virtual int DatabaseIdentityID(DbSelector selector)
        {
            var db       = selector.Db(this);
            var identity = db.Identity();

            if (identity == null)
            {
                return(0);
            }
            return(identity.GetID(selector.Transaction(this)));
        }
Exemplo n.º 2
0
 public virtual int DatabaseIdentityID(DbSelector selector)
 {
     var db = selector.Db(this);
     var identity = db.Identity();
     if (identity == null)
     {
         return 0;
     }
     return identity.GetID(selector.Transaction(this));
 }