Added RedirectUsingNamedRoute
[castle.git] / ActiveRecord / Castle.ActiveRecord.Tests / Model / Snippet.cs
blob478cae42e6e67ef56c98f95a91023832c7b678d9
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.ActiveRecord.Tests.Model
17 using System;
19 [ActiveRecord]
20 public class Snippet : ActiveRecordBase
22 private int id;
23 private int refid;
24 private String langcode;
25 private String text;
27 public Snippet()
31 [PrimaryKey]
32 public int Id
34 get { return id; }
35 set { id = value; }
38 [Property]
39 public int Refid
41 get { return refid; }
42 set { refid = value; }
45 [Property]
46 public string LangCode
48 get { return langcode; }
49 set { langcode = value; }
52 [Property]
53 public string Text
55 get { return text; }
56 set { text = value; }