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())); }
public static object[] GetPrimaryKeyForBind(this ISQLiteObject so) => GetTable(so).GetPrimaryKeyForBind(so);