Example #1
0
 /// <summary>
 /// Converte e modifica um objeto
 /// </summary>
 public bool ConvertModify <T>(long nID, IConvertDevice <T> obj) where T : GenericObject, new()
 {
     return(ModifyWhere(WhereByObject <T>(new T()
     {
         id = nID
     }), obj.ConvertDevice()) == 1);
 }
Example #2
0
 /// <summary>
 /// Converte e adiciona um objeto
 /// </summary>
 public long ConvertAdd <T>(IConvertDevice <T> obj) where T : GenericItem
 {
     return(AddRange(new T[] { obj.ConvertDevice() })[0]);
 }