public override void OnUpdate(IStation station) { Station st = (Station)station; //st.Name; string xml = CommuniPortConfigSerializer.Serialize(st.CommuniPortConfig); int id = (int)GuidHelper.ConvertToUInt32(st.Guid); DBI.Instance.UpdateStation(id, st.Name, xml, st.Ordinal, st.Street, st.Remark); }
public void t() { UInt32 //min = 0, max = UInt32.MaxValue; max = 1; Guid id = GuidHelper.Create(max); //Console.WriteLine(); Assert.AreEqual(GuidHelper.ConvertToUInt32(id), max); }