|
using System;
using System.Collections.Generic;
using System.Text;
namespace XPeriment.Persistence.PersistentObjects
{
public class FieldMapping
{
private string propertyname = "";
private string databasefield = "";
private bool isprimarykey = false;
private bool nullsallowed = true;
private bool isforaignkey = false;
public bool IsPrimaryKey
{
get
{
return isprimarykey;
}
set
{
isprimarykey = value;
}
}
public bool IsForaignKey
{
get
{
return isforaignkey;
}
set
{
isforaignkey = value;
}
}
public bool NullsAllowed
{
get
{
return nullsallowed;
}
set
{
nullsallowed = value;
}
}
public string PropertyName
{
get
{
return propertyname;
}
set
{
propertyname = value;
}
}
public string DatabaseField
{
get
{
return databasefield;
}
set
{
databasefield = value;
}
}
public FieldMapping(string propertyName, string databaseField)
{
propertyname = propertyName;
databasefield = databaseField;
}
public FieldMapping(string propertyName, string databaseField, bool isPrimaryKey)
{
propertyname = propertyName;
databasefield = databaseField;
isprimarykey = isPrimaryKey;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.