public void FullyQualifiedName() { var item = new dboMultipleDataSetStatement(); Assert.AreEqual("[dbo].[MultipleDataSetStatement]", item.FullyQualifiedName()); }
public async Task DataSetModelsMultipleDataTables() { using (var con = new SqlConnection(connectionString)) { var sproc = new dboMultipleDataSetStatement(); var cmd = sproc.Build(con); await con.OpenAsync(); var adapter = new SqlDataAdapter(cmd); var ds = new DataSet(); adapter.Fill(ds); var objs = ds.Models<SelectData>(); Assert.AreEqual(1, objs.Count()); Assert.AreEqual(0, objs.ElementAt(0).Identifier); } }