Ejemplo n.º 1
0
        public IDBTableAdapterCommand <T> CreateLoadCommand(DBTableAdapterContext <T> context)
        {
            if (context.PkColumns.Count() == 0)
            {
                return(null);
            }
            var cmd = new QueryCommand <T>(
                _SqlResolver.LoadTemplate(context),
                context.PkColumnsInfo.Select(i => new CommandParameter <T> {
                Column = i
            })
                );

            return(cmd);
        }