Example #1
0
        /// <summary>
        /// Updates an instance of Site_LogIns.
        /// </summary>
        /// <param name="site_LogIns">The instance of site_LogIns to persist. </param>
        /// <results>'true' if the instance was updated, otherwise, 'false'. </results>
        public static Boolean Update(Site_LogIns site_LogIns)
        {
            System.Boolean value;
            value = site_LogIns.Update();

            return(value);
        }
Example #2
0
        /// <summary>
        /// Updates an instance of Site_LogIns if the underlying data has not changed. The original instance is Site_LogIns_Original. To bypass the concurrency check, pass in 'null' for the Site_LogIns_Original parameter.
        /// </summary>
        /// <param name="site_LogIns">The instance of site_LogIns to persist. </param>
        /// <param name="site_LogIns_Original">The original instance of site_LogIns. </param>
        /// <results>'true' if the instance was updated, otherwise, 'false'. </results>
        public static Boolean Update(Site_LogIns site_LogIns, Site_LogIns site_LogIns_Original)
        {
            System.Boolean value;
            value = site_LogIns.Update(site_LogIns_Original.System_User_Id, site_LogIns_Original.Session_Session_Id, site_LogIns_Original.Company_Name, site_LogIns_Original.Role, site_LogIns_Original.First_Name, site_LogIns_Original.Last_Name, site_LogIns_Original.Email_Address, site_LogIns_Original.CreatedDate, site_LogIns_Original.LogOutDate);

            return(value);
        }
Example #3
0
        /// <summary>
        /// Updates an instance of Site_LogIns.
        /// </summary>
        /// <param name="site_LogIns">The instance of site_LogIns to persist. </param>
        /// <results>'true' if the instance was updated, otherwise, 'false'. </results>
        public Boolean UpdateSite_LogIns(Site_LogIns site_LogIns)
        {
            System.Boolean val;

            val = site_LogIns.Update();
            return(val);
        }
Example #4
0
        /// <summary>
        /// Deletes an instance of Site_LogIns based on site_LogIns.
        /// </summary>
        /// <param name="site_LogIns">The instance of site_LogIns to persist. </param>
        /// <results>'true' if the instance was deleted, otherwise, 'false'. </results>
        public static Boolean Delete(Site_LogIns site_LogIns)
        {
            System.Boolean value;
            value = Site_LogIns.DeleteSite_LogIns(site_LogIns.Site_LogIn_Id);

            return(value);
        }
Example #5
0
        /// <summary>
        /// Deletes an instance of Site_LogIns based on Site_LogIn_Id.
        /// </summary>
        /// <param name="site_LogIn_Id">The database automatically generates this value. </param>
        /// <results>'true' if the instance was deleted, otherwise, 'false'. </results>
        public Boolean DeleteSite_LogIns(Int32 site_LogIn_Id)
        {
            System.Boolean value;
            value = Site_LogIns.DeleteSite_LogIns(site_LogIn_Id);

            return(value);
        }
Example #6
0
        /// <summary>
        /// Get the instance of Site_LogIns that corresponds to the primary key. If no data is found, a null instance is returned.
        /// Returns an instance of Site_LogIns.
        /// </summary>
        /// <param name="site_LogIn_Id">The database automatically generates this value. </param>
        public Site_LogIns GetSite_LogIns(Int32 site_LogIn_Id)
        {
            Site_LogIns businessValue;

            businessValue = Site_LogIns.GetSite_LogIns(site_LogIn_Id);
            return(businessValue);
        }
Example #7
0
        /// <summary>
        /// Returns an instance of List<Bar.Business.Site_LogIns>.
        /// </summary>
        /// <param name="site_LogIn_Id">The database automatically generates this value. </param>
        /// <results>Returns a strongly typed list of Site_LogIns. </results>
        public List <Site_LogIns> GetSite_LogInsBySite_LogIn_Id(Int32 site_LogIn_Id)
        {
            List <Site_LogIns> value;

            value = Site_LogIns.GetSite_LogInsBySite_LogIn_Id(site_LogIn_Id);

            return(value);
        }
Example #8
0
        /// <summary>
        /// Persists a new instance of Site_LogIns to the database.
        /// </summary>
        /// <param name="site_LogIns">The instance of site_LogIns to persist. </param>
        public static void Insert(Site_LogIns site_LogIns)
        {
            Int32 site_LogIn_Id = site_LogIns.Site_LogIn_Id;

            Site_LogIns.InsertSite_LogIns(site_LogIns.System_User_Id, site_LogIns.Session_Session_Id, site_LogIns.Company_Name, site_LogIns.Role, site_LogIns.First_Name, site_LogIns.Last_Name, site_LogIns.Email_Address, site_LogIns.CreatedDate, site_LogIns.LogOutDate, ref site_LogIn_Id);

            //Reassign ref and out parameters
            site_LogIns.Site_LogIn_Id = site_LogIn_Id;
        }
Example #9
0
        /// <summary>
        /// Get the instance of Site_LogIns that corresponds to the primary key. If no data is found, a null instance is returned.
        /// Returns an instance of Site_LogIns.
        /// </summary>
        /// <param name="site_LogIn_Id">The database automatically generates this value. </param>
        public static Site_LogIns GetSite_LogIns(Int32 site_LogIn_Id)
        {
            Site_LogIns val = null;
            List <Bar.Business.Site_LogIns> businessEntityCollection = GetSite_LogInsBySite_LogIn_Id(site_LogIn_Id);

            if (businessEntityCollection.Count > 0)
            {
                val = businessEntityCollection[0];
            }
            return(val);
        }
Example #10
0
        /// <summary>
        /// Updates an instance of Site_LogIns if the underlying data has not changed. The original instance is Site_LogIns_Original. To bypass the concurrency check, pass in 'null' for the Site_LogIns_Original parameter.
        /// </summary>
        /// <param name="site_LogIns">The instance of site_LogIns to persist. </param>
        /// <param name="site_LogIns_Original">The original instance of site_LogIns. </param>
        /// <results>'true' if the instance was updated, otherwise, 'false'. </results>
        public Boolean UpdateSite_LogIns(Site_LogIns site_LogIns, Site_LogIns site_LogIns_Original)
        {
            System.Boolean val;

            if (site_LogIns_Original == null)
            {
                val = site_LogIns.Update();
            }
            else
            {
                val = Site_LogIns.Update(site_LogIns, site_LogIns_Original);
            }
            return(val);
        }
Example #11
0
        /// <summary>
        /// Returns a collection of Site_LogIns filtered on the following criteria: System_User_Id. The pagingInfo parameters are used for paging.
        /// </summary>
        /// <param name="pagingInfo">a container for the paging parameters. </param>
        /// <results>Returns a strongly typed list of Site_LogIns. </results>
        public List <Site_LogIns> GetSite_LogInsBySystem_User_Id(Int32 system_User_Id, PagingInfo pagingInfo)
        {
            List <Site_LogIns> val;
            long totalCount;

            if (pagingInfo == null || pagingInfo.GetAll)
            {
                val = Site_LogIns.GetSite_LogInsBySystem_User_Id(system_User_Id);
                if (pagingInfo != null)
                {
                    pagingInfo.TotalCount = val.Count;
                }
            }
            else
            {
                pagingInfo.Normalize();
                val = Site_LogIns.GetSite_LogInsBySystem_User_Id(system_User_Id, pagingInfo.PageSize, pagingInfo.StartingRowNumber, pagingInfo.PageNr, out totalCount);
                pagingInfo.TotalCount = totalCount;
            }
            return(val);
        }
 private List <Site_LogIns> GetSite_LogIns()
 {
     return(Site_LogIns.GetSite_LogInsBySystem_User_Id(System_User_Id));
 }
Example #13
0
 /// <summary>
 /// Persists a new instance of Site_LogIns to the database.
 /// </summary>
 /// <param name="site_LogIns">The instance of site_LogIns to persist. </param>
 public void InsertSite_LogIns(Site_LogIns site_LogIns)
 {
     Site_LogIns.Insert(site_LogIns);
 }