Пример #1
0
        public override void Test()
        {
            var cmd = DA.DefaultDb.GetCommand("select * from dbo.FilmTbl where filmcode=@fid", sproc: false);
            var dbr = DA.DefaultDb.ExecuteReader(cmd, (row) =>
            {
                var result = new Film2();

                result.Read(row);
                System.Console.WriteLine(JsonConvert.SerializeObject(result));
                return(result);
            }, new { fid = 42690 });
        }
            public override void Test()
            {
                var cmd = DA.DefaultDb.GetCommand("select * from dbo.FilmTbl where filmcode=@fid", sproc: false);
                var dbr = DA.DefaultDb.ExecuteReader(cmd, (row) =>
                {
                    var result = new Film2();

                    result.Read(row);

                    return(result);
                }, new { fid = 42690 });
            }