Exemplo n.º 1
0
        //uruchomienie zapytan na silniku skladowania danych

        public abstract string GetSetDataCommand(StorageDataModel <object> model); // insert  update  delete        SET table serizlaizwaoana siecka
Exemplo n.º 2
0
        public abstract string GetSetDataCommand(StorageDataModel <object> model); // insert  update  delete        SET table serizlaizwaoana siecka

        protected virtual string GetColumnsDelimitedList(StorageDataModel <object> model)
        {
            return(string.Join(CommandColumnsDelimiter, model.Data.Select(item => item.Key).ToArray()));
        }
Exemplo n.º 3
0
 public override string GetSetDataCommand(StorageDataModel <object> model)
 {
     return(string.Format(CommandPattern, CommandName, model.TableName, GetColumnsDelimitedList(model), string.Join(", ", model.Data.Select(item => FormatDatabaseValue(item.Value)))));
 }