lib/core/entity/Joins.js
function view(query) {
    var queryDefinition;
    if (query instanceof Function) {
        queryDefinition = query();
    }
    else {
        queryDefinition = query;
    }
    var view = new Entity_1.QView([], queryDefinition);
    var customEntity = queryDefinition.select;
    view = convertMappedEntitySelect(customEntity, queryDefinition, view, view, 'f');
    return view;
}
function view(query) {
    var queryDefinition;
    if (query instanceof Function) {
        queryDefinition = query();
    }
    else {
        queryDefinition = query;
    }
    var view = new Entity_1.QView([], queryDefinition);
    var customEntity = queryDefinition.select;
    view = convertMappedEntitySelect(customEntity, queryDefinition, view, view, 'f');
    return view;
}
function view ( query ) { var queryDefinition ; if ( query instanceof Function ) { queryDefinition = query ( ) ; } else { queryDefinition = query ; } var view = new Entity_1 . QView ( [ ] , queryDefinition ) ; var customEntity = queryDefinition . select ; view = convertMappedEntitySelect ( customEntity , queryDefinition , view , view , 'f' ) ; return view ; }
Created by Papa on 10/25/2016.
Created by Papa on 10 / 25 / 2016 .