Note: Proofreading occurs each time you call ToList or ToArray, so it is advisable to obtain a collection of data, and then to work with her.

Examples of usage

the first suitable object

usingICSSoft.STORMNET.Business;usingICSSoft.STORMNET.Business.LINQProvider;//... vards=(SQLDataService)DataServiceProvider.DataService;// The data service. Кошкаcat=ds.Query<Кошка>(Кошка.Views.КошкаE).First(o=>o.Кличка.Contains("Osh"));// Get the object. Console.WriteLine(cat.Кличка);//Use.

the first suitable object (with the generation TOP 1 in the request body when using FirstOrDefault and First)

usingICSSoft.STORMNET.Business;usingICSSoft.STORMNET.Business.LINQProvider;//... vards=(SQLDataService)DataServiceProvider.DataService;// The data service. Кошкаcat=ds.Query<Кошка>(Кошка.Views.КошкаE).Where(o=>o.Кличка.Contains("Osh")).Take(1).FirstOrDefault();// Get the object. Console.WriteLine(cat.Кличка);//Use.

a collection of objects

usingICSSoft.STORMNET.Business;usingICSSoft.STORMNET.Business.LINQProvider;//... vards=(SQLDataService)DataServiceProvider.DataService;// The data service. IQueryable<Кошка>objs=ds.Query<Кошка>(Кошка.Views.КошкаE);IQueryable<Кошка>query=fromoinobjswhereo.PrimaryKey=="6211E0DE-3E7A-4A68-866A-AB206A005B1C"selecto;// Get the cats on a given key value. List<Кошка>data=query.ToList();// Subtract data to the collection. Console.WriteLine(data[0).Кличка);// Use the received data.

the Following code is equivalent to the previous

vards=(SQLDataService)DataServiceProvider.DataService;// The data service. IQueryable<Кошка>objs=ds.Query<Кошка>(Кошка.Views.КошкаE).Where(o=>o.PrimaryKey=="6211E0DE-3E7A-4A68-866A-AB206A005B1C");// Get the cats on a given key value. List<Кошка>data=objs.ToList();// Subtract data to the collection. Console.WriteLine(data[0).Кличка);// Use the received data.