help me

help me

Old forum URL: forums.lhotka.net/forums/t/6162.aspx


oneinone posted on Thursday, January 15, 2009

i have doubt in creating csla pjt.
i hav created my pjt like this.
VS2005->New Pjt->Class Library pjt has created.
but under reference folder im not getting csla.
Im getting only system,system.data,system.xml.
Im not able to proceed...Pls help needed urgently..

sergeyb replied on Thursday, January 15, 2009

You have to add a reference to CSLA – right click on references select add new, browse, browse to CSLA.DLL

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: oneinone [mailto:cslanet@lhotka.net]
Sent: Thursday, January 15, 2009 8:10 AM
To: Sergey Barskiy
Subject: [CSLA .NET] help me

 

i have doubt in creating csla pjt.
i hav created my pjt like this.
VS2005->New Pjt->Class Library pjt has created.
but under reference folder im not getting csla.
Im getting only system,system.data,system.xml.
Im not able to proceed...Pls help needed urgently..

oneinone replied on Saturday, January 17, 2009

thanks..i got the reference to csla.dll

oneinone replied on Sunday, January 18, 2009

hi ,
im getting error like dis..
  'ClassLibrary1.Library.Customer' does not implement inherited abstract member 'Csla.BusinessBase<ClassLibrary1.Library.Customer>.GetIdValue()'   

how can i fix this error..,

I have implemented code like this

using System;
using System.Collections.Generic;
using System.Text;
using Csla;
using Csla.Data;

namespace ClassLibrary1.Library
{
    [Serializable()]
    public class Customer : BusinessBase<Customer>
    {
        #region Business Methods

        private string _firstname = string.Empty;
        private string _lastname = string.Empty;
        private string _description = string.Empty;

        public string FirstName
        {
            [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
            get
            {
                CanReadProperty(true);
                return _firstname;
            }
            [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
            set
            {
                CanWriteProperty(true);
                if (value == null) value = string.Empty;
                if (value != null)
                {
                    _firstname = value;
                    PropertyHasChanged();
                }
            }
        }
        public string LastName
        {
            [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
            get
            {
                CanReadProperty(true);
                return _lastname;
            }
            [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
            set
            {
                CanWriteProperty(true);
                if (value == null) value = string.Empty;
                if (value != null)
                {
                    _lastname = value;
                    PropertyHasChanged();
                }
            }
        }
        public string Description
        {
            [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
            get
            {
                CanReadProperty(true);
                return _description;
            }
            [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
            set
            {
                CanWriteProperty(true);
                if (value == null) value = string.Empty;
                if (value != null)
                {
                    _description = value;
                    PropertyHasChanged();
                }
            }
        }
        #endregion

Copyright (c) Marimer LLC