Code: Select all
var query = from c in TBLNames
where c.FirstName == 1
select c;
if (id != null)
query = from c in MyNames
where c.ID == id
select c;
MyNames = query.Take(10).ToList();
Code: Select all
var query = from c in TBLNames
where c.FirstName == 1
select c;
if (id != null)
query = from c in MyNames
where c.ID == id
select c;
MyNames = query.Take(10).ToList();
Code: Select all
public override int Size {
get { return base.Size; }
set {
base.Size = value;
if (DbType == DbType.String && Size > 4000)
this.OracleDbType = OracleDbType.Clob;
}
}
Code: Select all
public class Contacts {
public IList<TBLCONTACTNAME> All { get; private set; }
public Contacts() {
...
All = TBLCONTACTNAMEs.ToList();
}
}
Code: Select all
public class Contacts {
public IList<string> FirstNames { get; private set; }
public Contacts() {
...
FirstNames =
(from c in TBLCONTACTNAMEs
select c.FirstName)
.ToList();
}
}
Code: Select all
@foreach (var item in Model.FirstNames)
{
@Html.Encode(item.FirstName)
}
Code: Select all
if (!property.ReadOnly) {