Browse by Tags

Related Posts

  • Re: [UIHint("XXX")] in a Partials.cs doesn't work. (It is not possible to change Field types)

    [quote user="ricka6"] I think you want [UIHint( "MultilineText" )] not [UIHint( "MultilineText_Edit" )] [/quote] Yep that makes sense, otherwise when you edit it will look for a FieldTempalte called MultilineText_Edit_Edit for Edit and Insert pages
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 10-31-2008, 12:00 AM
    Filed under: Attributes, Dynamic Data, Metadata
  • Re: Guid columns are not displayed when inserting or editing item

    If you are not familiar with partial classes and metadata in Dynamic Data I suggest you have a look at some of the videos here : Here is some sample Partial Classes and Metadata [MetadataType( typeof (CategoryMD))] public partial class Category { public class CategoryMD { [ScaffoldColumn( true )] public...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 10-23-2008, 12:00 AM
    Filed under: Attributes, Dynamic Data, Metadata
  • Re: Registering Multiple Models

    Hi Norisk, What I would do is find some way of differentiating which table are which say a new attribute. and then I would do something like this: Default.aspx.cs public partial class _Default : System.Web.UI.Page { protected void Page_Load( object sender, EventArgs e) { System.Collections.IList visibleTables...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 10-07-2008, 12:00 AM
    Filed under: Attributes, Custom Pages, Dynamic Data, Metadata
  • Re: Association attribute

    Hi Marcin, I'd worked out what it did but I thought I had an issue, but I was getting and actual FK column not the L2S FK column But what I wanted was the L2S FK column column's metadata which I now have via: var association = metaChildColumn.Attributes.OfType<System.Data.Linq.Mapping.AssociationAttribute>...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 09-24-2008, 12:00 AM
    Filed under: Attributes, Dynamic Data, Metadata
  • Re: Association attribute

    As it turns out eventhough this is null and I can get it via the model: var association = MetaModel.Default. Tables.SingleOrDefault(t => t.Name == "Employees" ). Columns.SingleOrDefault(c => c.Name == "Employees" ).Provider.Association; What I realy wanted was the AssociationAttribute...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 09-23-2008, 12:00 AM
    Filed under: Attributes, Dynamic Data, Metadata
  • Re: Details-Details Filter and for inserting

    I looks like your Cscade Attribute is not able to be resolved what you will need to do (as I think you are using a webapplication project not a file based website) is surround the CascadeAttribute class with a namspace and import that namespace into the metadata classes file, or just put the CascadeAttribute...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 09-16-2008, 12:00 AM
    Filed under: Attributes, Dynamic Data, Metadata
  • Re: Dynamic child details on a dynymic details or edit page?

    [quote user="zwitterion"]If you can think of a way of determining it using the EF rather than just adding it to metadata, post that too cos I'm stumped :( (and you'd think it'd be easy)[/quote] I've found this in the metadata metaChildColumn.ChildTable.ForeignKeyColumnsNames...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 08-08-2008, 12:00 AM
    Filed under: Attributes, Custom Field Templates, Dynamic Data, GridView, Metadata
  • Re: Dynamic Data website - MetaDatatype and DisplayFormat in VB

    [quote user="grajasekaran"] Also the same problem for <DisplayFormat( DataFormatString="{0:d}")> [/quote] Here's an example that does both: <MetadataType( GetType (OrderMD))> _ Partial Public Class [Order] End Class Public Class [OrderMD] <DataType(DataType. Date...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 08-07-2008, 12:00 AM
    Filed under: VB, Attributes, Dynamic Data, Metadata
  • Re: Customization Using SQL Server Extended Properties

    [quote user="necoder"] 1) Is anyone using SQL Server Extended Properties with Dynamic Data to auto customize websites? I have read some older posts on this subject and was wondering if anyone could share their success. [/quote] Hi Necoder I've had a read up on SQL Server Extended Properties...
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 07-31-2008, 12:00 AM
    Filed under: Attributes, Dynamic Data, Metadata
  • Re: Columns visibility

    [quote user="christof82"] foreach (MetaColumn column in table.Columns) { if (column.Attributes[ typeof (DetailAttribute)] != null ) column.Scaffold = false ; } [/quote] That's a neat trick with the metadata attributes read only that is a neat workaround for some issues I do like that
    Posted to ASP.NET Dynamic Data (Forum) by sjnaughton on 07-25-2008, 12:00 AM
    Filed under: Attributes, Dynamic Data, Metadata
Page 1 of 4 (36 items) 1 2 3 4 Next >