public static int LookupModelId( int manufacturerId, string mName ) { using( var ctx = new TecdocBaseDataContext() ) { return ctx.LookupModelId( manufacturerId, mName ); } }