Source/NFX/DataAccess/CRUD/Schema.cs
/// <summary>
/// Returns schema instance for the TypedRow instance by fetching schema object from cache or
///  creating it if it has not been cached yet
/// </summary>
Returns schema instance for the TypedRow instance by fetching schema object from cache or
creating it if it has not been cached yet
Returns schema instance for the TypedRow instance by fetching schema object from cache or creating it if it has not been cached yet
public static Schema GetForTypedRow(Type trow)
            {
                if (!typeof(TypedRow).IsAssignableFrom(trow))
                    throw new CRUDException(StringConsts.CRUD_TYPE_IS_NOT_DERIVED_FROM_TYPED_ROW_ERROR.Args(trow.FullName));
                var name = trow.AssemblyQualifiedName;
                var schema = s_TypedRegistry[name];
                if (schema!=null) return schema;
                lock(s_TypedRegistry)
                {
                    schema = s_TypedRegistry[name];
                    if (schema!=null) return schema;
                    schema = new Schema(trow);
                    return schema;
                }
            }
public static Schema GetForTypedRow ( Type trow ) { if ( ! typeof ( TypedRow ) . IsAssignableFrom ( trow ) ) throw new CRUDException ( StringConsts . CRUD_TYPE_IS_NOT_DERIVED_FROM_TYPED_ROW_ERROR . Args ( trow . FullName ) ) ; var name = trow . AssemblyQualifiedName ; var schema = s_TypedRegistry [ name ] ; if ( schema != null ) return schema ; lock ( s_TypedRegistry ) { schema = s_TypedRegistry [ name ] ; if ( schema != null ) return schema ; schema = new Schema ( trow ) ; return schema ; } }
Returns schema instance for the TypedRow instance by fetching schema object from cache or
creating it if it has not been cached yet
Returns schema instance for the TypedRow instance by fetching schema object from cache or creating it if it has not been cached yet
trow
Type