예제 #1
0
        public static SQLiteObjectTable GetTable(this ISQLiteObject so)
        {
            if (so == null)
            {
                throw new ArgumentNullException(nameof(so));
            }

            var db = so.Database;

            if (db == null)
            {
                throw new ArgumentException(null, nameof(so));
            }

            return(db.GetObjectTable(so.GetType()));
        }
예제 #2
0
 public static object[] GetPrimaryKeyForBind(this ISQLiteObject so) => GetTable(so).GetPrimaryKeyForBind(so);