public virtual IEnumerable <IPermissionState> GetPermissionTreeChildren(string parentId, IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <PermissionState>(); NHibernateUtils.CriteriaAddCriterion(criteria, "ParentPermissionId", parentId); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <PermissionState>()); }
public IList <Fill> ListAll() { IList <Fill> list = null; list = CurrentSession.CreateCriteria <Fill>() .List <Fill>(); return(list); }
public virtual IEnumerable <IPermissionState> GetPermissionTreeRoots(Dddml.Support.Criterion.ICriterion filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <PermissionState>(); CriteriaAddRootParentIdCriterion(criteria); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <PermissionState>()); }
public virtual IEnumerable <ISupplierProductState> Get(Dddml.Support.Criterion.ICriterion filter, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <SupplierProductState>(); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); AddNotDeletedRestriction(criteria); return(criteria.List <SupplierProductState>()); }
public virtual IEnumerable <ILocatorState> GetLocatorTreeRoots(IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <LocatorState>(); CriteriaAddLocatorTreeRootParentIdCriterion(criteria); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <LocatorState>()); }
public virtual IEnumerable <IPartyState> Get(IEnumerable <KeyValuePair <string, object> > filter, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <PartyState>(); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); AddNotDeletedRestriction(criteria); return(criteria.List <PartyState>()); }
public IList <Foerderkurs> GetBySchüler(int SchülerID) { return(CurrentSession.CreateCriteria <Foerderkurs>() //.CreateCriteria("Auftraege") .CreateCriteria("Foerderkurs") .Add(Restrictions.Eq("FoerderkursID", FoerderkursID)) .List <Foerderkurs>()); }
public virtual IEnumerable <ILocatorState> GetLocatorTreeChildren(string parentId, Dddml.Support.Criterion.ICriterion filter, IList <string> orders, int firstResult = 0, int maxResults = int.MaxValue) { var criteria = CurrentSession.CreateCriteria <LocatorState>(); NHibernateUtils.CriteriaAddCriterion(criteria, "ParentLocatorId", parentId); NHibernateUtils.CriteriaAddFilterAndOrdersAndSetFirstResultAndMaxResults(criteria, filter, orders, firstResult, maxResults); return(criteria.List <LocatorState>()); }
public IEnumerable <IShipmentItemState> FindByShipmentId(string shipmentId) { var criteria = CurrentSession.CreateCriteria <ShipmentItemState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("ShipmentItemId.ShipmentId", shipmentId)) ; return(criteria.Add(partIdCondition).List <ShipmentItemState>()); }
public IEnumerable <IOrderRoleState> FindByOrderId(string orderId) { var criteria = CurrentSession.CreateCriteria <OrderRoleState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("OrderRoleId.OrderId", orderId)) ; return(criteria.Add(partIdCondition).List <OrderRoleState>()); }
public IEnumerable <IMovementConfirmationLineState> FindByMovementConfirmationDocumentNumber(string movementConfirmationDocumentNumber) { var criteria = CurrentSession.CreateCriteria <MovementConfirmationLineState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("MovementConfirmationLineId.MovementConfirmationDocumentNumber", movementConfirmationDocumentNumber)) ; return(criteria.Add(partIdCondition).List <MovementConfirmationLineState>()); }
public IEnumerable <ISellableInventoryItemEntryMvoState> GetAll(int firstResult, int maxResults) { var criteria = CurrentSession.CreateCriteria <SellableInventoryItemEntryMvoState>(); criteria.SetFirstResult(firstResult); criteria.SetMaxResults(maxResults); AddNotDeletedRestriction(criteria); return(criteria.List <SellableInventoryItemEntryMvoState>()); }
public IEnumerable <IUserClaimState> FindByUserId(string userId) { var criteria = CurrentSession.CreateCriteria <UserClaimState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("UserClaimId.UserId", userId)) ; return(criteria.Add(partIdCondition).List <UserClaimState>()); }
public IEnumerable <IInOutLineState> FindByInOutDocumentNumber(string inOutDocumentNumber) { var criteria = CurrentSession.CreateCriteria <InOutLineState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("InOutLineId.InOutDocumentNumber", inOutDocumentNumber)) ; return(criteria.Add(partIdCondition).List <InOutLineState>()); }
public IEnumerable <IMovementLineState> GetMovementLines(string movementDocumentNumber) { var criteria = CurrentSession.CreateCriteria <MovementLineState>(); var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction() .Add(global::NHibernate.Criterion.Restrictions.Eq("MovementLineId.MovementDocumentNumber", movementDocumentNumber)) ; return(criteria.Add(partIdCondition).List <MovementLineState>()); }
public IEnumerable <IPhysicalInventoryLineState> FindByPhysicalInventoryDocumentNumber(string physicalInventoryDocumentNumber) { var criteria = CurrentSession.CreateCriteria <PhysicalInventoryLineState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("PhysicalInventoryLineId.PhysicalInventoryDocumentNumber", physicalInventoryDocumentNumber)) ; return(criteria.Add(partIdCondition).List <PhysicalInventoryLineState>()); }
public IEnumerable <IItemIssuanceState> GetItemIssuances(string shipmentId) { var criteria = CurrentSession.CreateCriteria <ItemIssuanceState>(); var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction() .Add(global::NHibernate.Criterion.Restrictions.Eq("ShipmentItemIssuanceId.ShipmentId", shipmentId)) ; return(criteria.Add(partIdCondition).List <ItemIssuanceState>()); }
public IEnumerable <IAttributeValueState> FindByAttributeId(string attributeId) { var criteria = CurrentSession.CreateCriteria <AttributeValueState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("AttributeValueId.AttributeId", attributeId)) ; return(criteria.Add(partIdCondition).List <AttributeValueState>()); }
public IList <Order> ListAll() { IList <Order> list = null; list = CurrentSession.CreateCriteria <Order>() .List <Order>(); EagerlyLoad(list); return(list); }
public IEnumerable <IPicklistItemState> GetPicklistItems(string picklistBinId) { var criteria = CurrentSession.CreateCriteria <PicklistItemState>(); var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction() .Add(global::NHibernate.Criterion.Restrictions.Eq("PicklistBinPicklistItemId.PicklistBinId", picklistBinId)) ; return(criteria.Add(partIdCondition).List <PicklistItemState>()); }
public IEnumerable <IUserLoginState> GetUserLogins(string userId) { var criteria = CurrentSession.CreateCriteria <UserLoginState>(); var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction() .Add(global::NHibernate.Criterion.Restrictions.Eq("UserLoginId.UserId", userId)) ; return(criteria.Add(partIdCondition).List <UserLoginState>()); }
public IEnumerable <IAttributeAliasState> GetAttributeAlias(string attributeId) { var criteria = CurrentSession.CreateCriteria <AttributeAliasState>(); var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction() .Add(global::NHibernate.Criterion.Restrictions.Eq("AttributeAliasId.AttributeId", attributeId)) ; return(criteria.Add(partIdCondition).List <AttributeAliasState>()); }
public IEnumerable <T> GetAll <T>(int firstResult, int maxResults) where T : class, IPartyState { var criteria = CurrentSession.CreateCriteria <T>(); criteria.SetFirstResult(firstResult); criteria.SetMaxResults(maxResults); AddNotDeletedRestriction(criteria); return(criteria.List <T>()); }
public IEnumerable <IOrderShipGroupState> GetOrderShipGroups(string orderId) { var criteria = CurrentSession.CreateCriteria <OrderShipGroupState>(); var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction() .Add(global::NHibernate.Criterion.Restrictions.Eq("OrderShipGroupId.OrderId", orderId)) ; return(criteria.Add(partIdCondition).List <OrderShipGroupState>()); }
public IEnumerable <IAttributeSetInstanceExtensionFieldState> FindByGroupId(string groupId) { var criteria = CurrentSession.CreateCriteria <AttributeSetInstanceExtensionFieldState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("AttributeSetInstanceExtensionFieldId.GroupId", groupId)) ; return(criteria.Add(partIdCondition).List <AttributeSetInstanceExtensionFieldState>()); }
public IEnumerable <IPicklistItemState> FindByPicklistBinId(string picklistBinId) { var criteria = CurrentSession.CreateCriteria <PicklistItemState>(); var partIdCondition = Restrictions.Conjunction() .Add(Restrictions.Eq("PicklistBinPicklistItemId.PicklistBinId", picklistBinId)) ; return(criteria.Add(partIdCondition).List <PicklistItemState>()); }
public virtual long GetCount(IEnumerable <KeyValuePair <string, object> > filter) { var criteria = CurrentSession.CreateCriteria <OrderState>(); criteria.SetProjection(Projections.RowCountInt64()); NHibernateUtils.CriteriaAddFilter(criteria, filter); AddNotDeletedRestriction(criteria); return(criteria.UniqueResult <long>()); }
public IEnumerable <IAttributeSetInstanceExtensionFieldMvoState> GetAll(int firstResult, int maxResults) { var criteria = CurrentSession.CreateCriteria <AttributeSetInstanceExtensionFieldMvoState>(); criteria.SetFirstResult(firstResult); criteria.SetMaxResults(maxResults); AddNotDeletedRestriction(criteria); return(criteria.List <AttributeSetInstanceExtensionFieldMvoState>()); }
public IEnumerable <IOrderState> GetAll(int firstResult, int maxResults) { var criteria = CurrentSession.CreateCriteria <OrderState>(); criteria.SetFirstResult(firstResult); criteria.SetMaxResults(maxResults); AddNotDeletedRestriction(criteria); return(criteria.List <OrderState>()); }
public IEnumerable <IGoodIdentificationState> GetGoodIdentifications(string productId) { var criteria = CurrentSession.CreateCriteria <GoodIdentificationState>(); var partIdCondition = global::NHibernate.Criterion.Restrictions.Conjunction() .Add(global::NHibernate.Criterion.Restrictions.Eq("ProductGoodIdentificationId.ProductId", productId)) ; return(criteria.Add(partIdCondition).List <GoodIdentificationState>()); }