Beispiel #1
0
        private static void save(Observation observation)
        {
            List <QueryParameter> parameterList = new List <QueryParameter>()
            {
                new QueryParameter("Comments", observation.Comments),
                new QueryParameter("Id", observation.Id),
                new QueryParameter("SpeciesCode", observation.SpeciesCode),
                new QueryParameter("EventId", observation.EventId),
                new QueryParameter("ObservationTypeId", observation.ObservationTypeId)
            };

            observation.Id = BaseMapper.SaveObjectWithIdentity(observation, parameterList, "Observation");
        }