Last post May 23, 2014 02:15 PM by damienBod
May 22, 2014 10:01 AM|Amit Pachahara|LINK
I need to write one custom attribute that provides the name of the sequence in SQL to get the next ID from it. The requirement is like i have a entity which has a field whose value is incremented by 1 using Sequece in SQL but bore commiting the data object
for this entity using Entity Framework i want to get the SequenceId value.
I hope i am clear with my question. Please let me what could be the way to write this kind of custom attribute.
May 22, 2014 06:02 PM|some_yahoo|LINK
I'm not sure what you mean by "Custom Attribute"; it sounds like you just want to fetch the identity of an inserted record. There may be some help here
I hope this helps
May 23, 2014 08:00 AM|Amit Pachahara|LINK
Custom Attribute means write a class that derived from Attribute base class and that put this Cutom Attribute on the you entity class property.
May 23, 2014 02:15 PM|damienBod|LINK
Here's some examples of action Filters. You can than use these inside your controller. The filter requires a default contructor.
Hope this helps