Exemple #1
0
        // Put implementations of OnBusinessObjectNameBOPropertyNameChanging()
        // and OnBusinessObjectNameBOPropertyNameChanged() here

        #endregion

        #region Extension Methods
        // Put methods to manipulate Business Objects here. Add, Update etc

        public static List <ReturnDistributorDetailsViewBO> GetDistributorDetails(string searchtext, int?maxrows, int?index, int?sortcolumn, bool?orderby, out int total, string pcoordinator, string scoordinator)
        {
            using (IndicoEntities objContext = new IndicoEntities())
            {
                System.Data.Objects.ObjectParameter   recCount = new System.Data.Objects.ObjectParameter("P_RecCount", typeof(int));
                List <ReturnDistributorDetailsViewBO> lst      = ReturnDistributorDetailsViewBO.ToList(objContext.GetDistributorsDetails(searchtext, maxrows, index, sortcolumn, orderby, recCount, pcoordinator, scoordinator));
                total = (int)recCount.Value;

                return(lst);
            }
        }