Technically, you can add an implementation in the same class with a data contract. Only related properties will be serialized.
, :
[DataContract]
public class LogEntry
{
...
public void WriteToDatabase()
, , , . , , -.
, , - .
. . , , - .
, DAL, , . , dll, , , , BLL/DAL, dll.
, .