Source/NFX/DataAccess/CRUD/Attributes.cs
/// <summary>
/// Returns UniqueSequenceAttribute or null for row type
/// </summary>
Returns UniqueSequenceAttribute or null for row type
Returns UniqueSequenceAttribute or null for row type
public static UniqueSequenceAttribute GetForRowType(Type tRow)
      {
        if (tRow == null || !typeof(Row).IsAssignableFrom(tRow))
          throw new CRUDException("UniqueSequenceAttribute.GetForRowType(tRow isnt TypedRow | null)");
        UniqueSequenceAttribute result;
        if (s_ScopeCache.TryGetValue(tRow, out result)) return result;
        result = tRow.GetCustomAttributes(typeof(UniqueSequenceAttribute), false)
                     .FirstOrDefault() as UniqueSequenceAttribute;
        var dict = new Dictionary<Type, UniqueSequenceAttribute>(s_ScopeCache);
        dict[tRow] = result;
        s_ScopeCache = dict; 
        return result;
      }
public static UniqueSequenceAttribute GetForRowType ( Type tRow ) { if ( tRow == null || ! typeof ( Row ) . IsAssignableFrom ( tRow ) ) throw new CRUDException ( " " ) ; UniqueSequenceAttribute result ; if ( s_ScopeCache . TryGetValue ( tRow , out result ) ) return result ; result = tRow . GetCustomAttributes ( typeof ( UniqueSequenceAttribute ) , false ) . FirstOrDefault ( ) as UniqueSequenceAttribute ; var dict = new Dictionary < Type , UniqueSequenceAttribute > ( s_ScopeCache ) ; dict [ tRow ] = result ; s_ScopeCache = dict ; return result ; }
Returns UniqueSequenceAttribute or null for row type
Returns UniqueSequenceAttribute or null for row type
// atomic
tRow
Type