public static T Read(params object[] args) { using (TableAdapter <T> adapter = TableAdapter <T> .Open()) { return(adapter.Read(args)); } }
public static T Read(params object[] args) { T t; using (TableAdapter <T> adapter = TableAdapter <T> .Open(new object[0])) { t = adapter.Read(args); } return(t); }