madskristensen / WebEssentials2015

A Visual Studio extension for web developers
Other
300 stars 94 forks source link

ignore properties while creating intellisense files #163

Closed lucamorelli closed 8 years ago

lucamorelli commented 8 years ago

Hi, I'm using the create typescript intellisense file and I'm finding it useful, but I have a request: as said in this issue https://github.com/madskristensen/WebEssentials2015/issues/158, creating the intellisense file as an interface gives me a problem. When I need the create a new instance of an object, I have to create an anonymous type specifying all the properties, and when I do this in a entity class of an ef models may be a problem, because can contain a lot of navigation properties, most of them unuseful from the typescript client point of view. So, instead of creating a generator function, it is possible to add an attribute to mark a property to be avoided while scaffolding? I think this way could be easier and cleaner.

lucamorelli commented 8 years ago

Looks like creating an empty IgnoreDataMember attribute and adding it to the property the item is not added to the intellisense file