Ejemplo n.º 1
0
        protected override void PrepareParameters(SqlParameterCollection parameters)
        {
            Check.NotNull(parameters, "The base class guarantees that the parameter is not null.");

            parameters.AddParameterUnsafe("@designer", SqlDbType.NVarChar, DesignerKey.Value);
            parameters.AddParameterOrNullUnsafe("@published", SqlDbType.Bit, Published);
            parameters.AddParameterOrNullUnsafe("@category", SqlDbType.NVarChar, CategoryKey, !String.IsNullOrEmpty(CategoryKey));
        }