예제 #1
0
        IDataParameter[] CreateParameters(Domain.Settings item)
        {
            var result = new List <IDataParameter>();

            result.Add(CreateParameter("OriginalId", item.OriginalId));
            result.Add(CreateParameter("Id", item.GetId()));
            result.Add(CreateParameter("Name", item.Name));
            result.Add(CreateParameter("MySetting1", item.MySetting1));

            return(result.ToArray());
        }
예제 #2
0
        /// <summary>Creates parameters for Inserting or Updating Settings records</summary>
        IDataParameter[] CreateParameters(Domain.Settings item)
        {
            var result = new List <IDataParameter>();

            result.Add(CreateParameter("OriginalId", item.OriginalId));
            result.Add(CreateParameter("Id", item.GetId()));
            result.Add(CreateParameter("Name", item.Name));
            result.Add(CreateParameter("PasswordResetTicketExpiryMinutes", item.PasswordResetTicketExpiryMinutes));
            result.Add(CreateParameter("CacheVersion", item.CacheVersion));

            return(result.ToArray());
        }