tags:

views:

22

answers:

0
[MetadataType(typeof(OrganizationGroupFormViewModel))]
public partial class OrganizationGroup { }    same name as generated in linq to sql?


public class OrganizationGroupMeta
{
   // datannotation validations comes here ?
}


    public ActionResult Create()
    {

        OrganizationGroup OrgGroup = new OrganizationGroup
            {

                int_CreatedBy = 1,
                dtm_CreatedDate = DateTime.Now
            };
        return View(new OrganizationGroupFormViewModel(OrgGroup));

      //  }
    }

how would i used this in the controller . it is saying int_CreatedBy and dtm_CreatedDate not found?