Exemplo n.º 1
0
 public static int UpdatePersonCommunication(int CommunicationId, PersonsCommunicationModel personComm)
 => Update(PersonsCommunicationTable.TableName, new ParamtersMap
 {
     [PersonsCommunicationTable.CoNameCfk] = personComm.CoNameCfk,
     [PersonsCommunicationTable.CoPeIdFk]  = personComm.CoPeIdFk,
     [PersonsCommunicationTable.CoValue]   = personComm.CoValue
 }, $"{PersonsCommunicationTable.CoId}={CommunicationId}");
Exemplo n.º 2
0
        public static int InsertPersonCommunication(out long insertId, PersonsCommunicationModel personComm)
        {
            var changedCount = Insert(out insertId, PersonsCommunicationTable.TableName, new ParamtersMap
            {
                [PersonsCommunicationTable.CoNameCfk] = personComm.CoNameCfk,
                [PersonsCommunicationTable.CoPeIdFk]  = personComm.CoPeIdFk,
                [PersonsCommunicationTable.CoValue]   = personComm.CoValue
            });

            return(changedCount);
        }