28 lines
434 B
C#
28 lines
434 B
C#
using System;
|
|
using System.Xml;
|
|
|
|
namespace oodb.mapping
|
|
{
|
|
public class StringMapping : NaiveMapping
|
|
{
|
|
public StringMapping(OODB oodb)
|
|
: base(oodb, typeof(string))
|
|
{
|
|
|
|
}
|
|
|
|
public override object FromText(string text)
|
|
{
|
|
return text;
|
|
}
|
|
|
|
public override string ToText(object value)
|
|
{
|
|
return value as string;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|